Color Gradient Picker
llms.txtExample
Small
Usage
<ColorGradientPicker bind:colors />
API Reference
ColorGradientPicker
A gradient editor that lets users add, remove, and reposition color stops.
Property Type Description
colors $bindable
array
The array of color stops defining the gradient. Default: —
defaultNewColor
object
The default RGB color for newly added stops. Default:
{ r: 0, g: 0, b: 0 }size
enum
The size of the gradient picker. Default:
'default'onchange
function
Callback invoked when the gradient colors change. Default: —
class
string
Additional CSS classes to apply. Default: —
Property
colors
defaultNewColor
size
onchange
class