@zag-js/slider
Version:
Core logic for the slider widget implemented as a state machine
46 lines (45 loc) • 908 B
JavaScript
// src/slider.props.ts
import { createProps } from "@zag-js/types";
import { createSplitProps } from "@zag-js/utils";
var props = createProps()([
"aria-label",
"aria-labelledby",
"dir",
"disabled",
"form",
"getAriaValueText",
"getRootNode",
"id",
"ids",
"invalid",
"largeStep",
"max",
"min",
"minStepsBetweenThumbs",
"name",
"onFocusChange",
"onValueChange",
"onValueChangeEnd",
"orientation",
"origin",
"readOnly",
"step",
"thumbAlignment",
"thumbCollisionBehavior",
"thumbSize",
"value",
"defaultValue"
]);
var splitProps = createSplitProps(props);
var thumbProps = createProps()(["index", "name"]);
var splitThumbProps = createSplitProps(thumbProps);
var markerProps = createProps()(["value"]);
var splitMarkerProps = createSplitProps(markerProps);
export {
markerProps,
props,
splitMarkerProps,
splitProps,
splitThumbProps,
thumbProps
};