UNPKG

@zag-js/toggle-group

Version:

Core logic for the toggle widget implemented as a state machine

28 lines (27 loc) 552 B
// src/toggle-group.props.ts import { createProps } from "@zag-js/types"; import { createSplitProps } from "@zag-js/utils"; var props = createProps()([ "dir", "disabled", "getRootNode", "id", "ids", "loopFocus", "multiple", "onValueChange", "orientation", "rovingFocus", "value", "defaultValue", "deselectable" ]); var splitProps = createSplitProps(props); var itemProps = createProps()(["value", "disabled"]); var splitItemProps = createSplitProps(itemProps); export { itemProps, props, splitItemProps, splitProps };