openpencil/packages/docs/programmable/sdk/api/advanced/use-gradient-stops.md
2026-03-24 23:24:08 +03:00

540 B

title description
useGradientStops Gradient-stop state and mutation helper for fill editors.

useGradientStops

useGradientStops(fill, onUpdate) manages active-stop state, subtype switching, stop dragging, and color or opacity updates for gradient fills.

Use it when building custom gradient editors beyond the packaged primitives.