A horizontal slider interface that appears at the cursor for precise value adjustments
SliderSpell
component creates an interactive horizontal slider that appears at the cursor position, perfect for making precise numerical adjustments. It features smooth mouse-based control, customizable ranges, and integrates seamlessly with Cedar’s hold-mode activation pattern.
Prop | Type | Required | Description |
---|---|---|---|
spellId | string | Yes | Unique identifier for this spell instance |
sliderConfig | SliderConfig | No | Configuration for the slider |
onComplete | (value, store) => void | Yes | Callback when value is confirmed |
activationConditions | ActivationConditions | Yes | Conditions that trigger the slider |