name: ColorPicker
purpose: Native color input paired with an editable CSS color value.
properties:
value: string; CSS color, normally #rrggbb
state:
value: string; CSS color, normally #rrggbb
events:
change: detail is the selected color string
examples:
standalone_and_form: |
rules:
- Define page data before ColorPicker is parsed.
- Use $bind for a standalone reactive value; use AutoForm schema type ColorPicker for generated forms.
related:
- ../AutoForm.yaml