@cas-smartdesign/swatch-picker
v3.2.0
Published
A color picker element which has the look and feel of the smartdesign color picker
Readme
@cas-smartdesign/swatch-picker
A color picker element.
Attributes
color: string- Defines the color of the icon and the value of the element
columncount: number- Defines the number of columns
colorsize: number- Defines the size of the individual colors on the palette
Properties
colorList: string[]- Defines the color palette used by the element, if null then default color palette will be used
CSS Custom Properties
--sd-swatch-picker-icon-size- Defines the size of the icon (default is 24px)
--sd-swatch-picker-icon-color- Defines the color of the icon (default is #1467ba)
--sd-swatch-picker-inactive-icon-color- Defines the color of the icon with a disabled picker state (default is #767676)
Custom events
value-change- This event is dispatched when the value (color) of the picker has changed by the User. The detail contains the updated color.
