ColorSwatch API
API reference docs for theColorSwatch
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| Used as a prefix for the aria-label of the swatch | _ |
|
| The background color for the swatch | _ |
|
| Used as the HTML 'name' attribute for the swatch input | _ |
|
| Callback function that is called when the color changes | _ |
|
| The width and height of the swatch |
|
|
| The currently selected color value | _ |