# Color Select
## Example
```svelte
```
## Documentation
## Usage
```svelte
```
## API Reference
### ColorSelect
A group of color swatches that allows selecting a single color.
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| colors | `(string | { class?: string; label: string; value?: string })[]` | `-` | The list of selectable colors. Can be simple strings or objects with custom class, label, and value. (required, bindable) |
| selected | `string | { class?: string; label: string; value?: string }` | `-` | The currently selected color. Defaults to the first color. (bindable) |
| name | `string` | `-` | The name attribute for the underlying radio inputs (auto-generated if not provided). (bindable) |
| onselected | `(color: Color, previous: Color) => void` | `-` | Callback invoked when the selected color changes. |
| colorsClass | `string` | `-` | Additional CSS classes for the color swatches container. |
| class | `string` | `-` | Additional CSS classes to apply to the root element. |
| ref | `HTMLDivElement` | `-` | The underlying DOM element. (bindable) |