UNPKG

@zag-js/color-picker

Version:

Core logic for the color-picker widget implemented as a state machine

15 lines (12 loc) 452 B
import { ChannelProps, ColorPickerProps } from '../color-picker.types.js'; import { Color } from '@zag-js/color-utils'; import '@zag-js/core'; import '@zag-js/dismissable'; import '@zag-js/popper'; import '@zag-js/types'; interface SliderBackgroundProps extends Required<ChannelProps> { value: Color; dir: ColorPickerProps["dir"]; } declare const getSliderBackground: (props: SliderBackgroundProps) => string; export { getSliderBackground };