# Color Gradient Picker
## Example
```svelte
Small
```
## Documentation
## Usage
```svelte
```
## API Reference
### ColorGradientPicker
A gradient editor that lets users add, remove, and reposition color stops.
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| colors | `{ rgb: { r: number; g: number; b: number }; position: number }[]` | `-` | The array of color stops defining the gradient. (bindable) |
| defaultNewColor | `{ r: number; g: number; b: number }` | `{ r: 0, g: 0, b: 0 }` | The default RGB color for newly added stops. |
| size | `'default' | 'sm'` | `'default'` | The size of the gradient picker. |
| onchange | `(colors: ColorStop[]) => void` | `-` | Callback invoked when the gradient colors change. |
| class | `string` | `-` | Additional CSS classes to apply. |