selectedColor
(string) - 選択された色
id
(string) - カラーフィールドのIDclass
(string) - カラーフィールドのクラスname
(string) - カラーフィールドの名前style
(string) - カラーフィールドのスタイルstyleReset
(boolean) - スタイルリセットフラグselectedColor
(string) - 初期選択色
update:modelValue
- カラーフィールドの色が変更されたときに発行されるイベント
bindingClass
- styleReset
がtrueの場合はprops.class
、falseの場合はrevuekitz-color-field ${props.class}
をクラス名としてセットする
<script setup>
import { ref } from 'vue'
import { ColorField } from 'revuekitz'
import 'revuekitz/dist/style.css'
const selectedColor = ref('')
</script>
<template>
<ColorField
id="colorFieldId"
class="color-field-class"
style="border: 1px solid black"
:styleReset="false"
name="color_field_name"
v-model="selectedColor"
/>
</template>