UNPKG

@zag-js/tags-input

Version:

Core logic for the tags-input widget implemented as a state machine

49 lines (48 loc) 924 B
// src/tags-input.props.ts import { createProps } from "@zag-js/types"; import { createSplitProps } from "@zag-js/utils"; var props = createProps()([ "addOnPaste", "allowDuplicates", "allowOverflow", "autoFocus", "blurBehavior", "delimiter", "dir", "disabled", "editable", "form", "getRootNode", "id", "ids", "inputValue", "invalid", "max", "maxLength", "name", "onFocusOutside", "onHighlightChange", "onInputValueChange", "onInteractOutside", "onPointerDownOutside", "onValueChange", "onValueInvalid", "placeholder", "required", "readOnly", "sanitizeValue", "translations", "validate", "value", "defaultValue", "defaultInputValue" ]); var splitProps = createSplitProps(props); var itemProps = createProps()(["index", "disabled", "value"]); var splitItemProps = createSplitProps(itemProps); export { itemProps, props, splitItemProps, splitProps };