{ "accordion": { "api": { "focusedValue": { "type": "string | null", "description": "The value of the focused accordion item." }, "value": { "type": "string[]", "description": "The value of the accordion" }, "setValue": { "type": "(value: string[]) => void", "description": "Sets the value of the accordion" }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of an accordion item." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the accordion. Useful for composition." }, "multiple": { "type": "boolean | undefined", "description": "Whether multiple accordion items can be expanded at the same time.", "defaultValue": "false" }, "collapsible": { "type": "boolean | undefined", "description": "Whether an accordion item can be closed after it has been expanded.", "defaultValue": "false" }, "value": { "type": "string[] | undefined", "description": "The controlled value of the expanded accordion items." }, "defaultValue": { "type": "string[] | undefined", "description": "The initial value of the expanded accordion items.\nUse when you don't need to control the value of the accordion." }, "disabled": { "type": "boolean | undefined", "description": "Whether the accordion items are disabled" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "The callback fired when the state of expanded/collapsed accordion items changes." }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "The callback fired when the focused accordion item changes." }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the accordion items.", "defaultValue": "\"vertical\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "angle-slider": { "api": { "value": { "type": "number", "description": "The current value of the angle slider" }, "valueAsDegree": { "type": "string", "description": "The current value as a degree string" }, "setValue": { "type": "(value: number) => void", "description": "Sets the value of the angle slider" }, "dragging": { "type": "boolean", "description": "Whether the slider is being dragged." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the machine.\nUseful for composition." }, "step": { "type": "number | undefined", "description": "The step value for the slider.", "defaultValue": "1" }, "value": { "type": "number | undefined", "description": "The value of the slider." }, "defaultValue": { "type": "number | undefined", "description": "The initial value of the slider.\nUse when you don't need to control the value of the slider.", "defaultValue": "0" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "The callback function for when the value changes." }, "onValueChangeEnd": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "The callback function for when the value changes ends." }, "disabled": { "type": "boolean | undefined", "description": "Whether the slider is disabled." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the slider is read-only." }, "invalid": { "type": "boolean | undefined", "description": "Whether the slider is invalid." }, "name": { "type": "string | undefined", "description": "The name of the slider. Useful for form submission." }, "aria-label": { "type": "string | undefined", "description": "The accessible label for the slider thumb." }, "aria-labelledby": { "type": "string | undefined", "description": "The id of the element that labels the slider thumb." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "async-list": { "api": { "items": { "type": "T[]", "description": "The items in the list." }, "filterText": { "type": "string", "description": "The filter text." }, "cursor": { "type": "C | undefined", "description": "The cursor." }, "sortDescriptor": { "type": "SortDescriptor | undefined", "description": "The sort descriptor." }, "loading": { "type": "boolean", "description": "Whether the list is loading." }, "sorting": { "type": "boolean", "description": "Whether the list is sorting." }, "empty": { "type": "boolean", "description": "Whether the list is empty." }, "hasMore": { "type": "boolean", "description": "Whether there are more items to load." }, "error": { "type": "any | undefined", "description": "The error instance returned by the last fetch." }, "abort": { "type": "VoidFunction", "description": "Function to abort the current fetch." }, "reload": { "type": "VoidFunction", "description": "Function to reload the list" }, "loadMore": { "type": "VoidFunction", "description": "Function to load more items" }, "sort": { "type": "(sortDescriptor: SortDescriptor) => void", "description": "Function to sort the list" }, "setFilterText": { "type": "(filterText: string) => void", "description": "Function to set the filter text" }, "clearFilter": { "type": "VoidFunction", "description": "Function to clear the filter text" } }, "context": { "load": { "type": "(args: LoadDetails) => Promise>", "description": "The function to call when the list is loaded" }, "sort": { "type": "((args: SortDetails) => Promise<{ items: T[] }> | { items: T[] } | undefined) | undefined", "description": "The function to call when the list is sorted" }, "initialItems": { "type": "T[] | undefined", "description": "The initial items to display" }, "initialSortDescriptor": { "type": "SortDescriptor | undefined", "description": "The initial sort descriptor to use" }, "initialFilterText": { "type": "string | undefined", "description": "The initial filter text to use" }, "dependencies": { "type": "LoadDependency[] | undefined", "description": "The dependencies to watch for changes" }, "autoReload": { "type": "boolean | undefined", "description": "Whether to automatically reload the list when the dependencies change" }, "onSuccess": { "type": "((details: { items: T[] }) => void | undefined) | undefined", "description": "The function to call when the list is loaded successfully" }, "onError": { "type": "((details: { error: Error }) => void | undefined) | undefined", "description": "The function to call when the list fails to load" } } }, "avatar": { "api": { "loaded": { "type": "boolean", "description": "Whether the image is loaded." }, "setSrc": { "type": "(src: string) => void", "description": "Function to set new src." }, "setLoaded": { "type": "VoidFunction", "description": "Function to set loaded state." }, "setError": { "type": "VoidFunction", "description": "Function to set error state." } }, "context": { "onStatusChange": { "type": "((details: StatusChangeDetails) => void) | undefined", "description": "Functional called when the image loading status changes." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the avatar. Useful for composition." }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" } } }, "carousel": { "api": { "page": { "type": "number", "description": "The current index of the carousel" }, "pageSnapPoints": { "type": "number[]", "description": "The current snap points of the carousel" }, "isPlaying": { "type": "boolean", "description": "Whether the carousel is auto playing" }, "isDragging": { "type": "boolean", "description": "Whether the carousel is being dragged. This only works when `draggable` is true." }, "canScrollNext": { "type": "boolean", "description": "Whether the carousel is can scroll to the next view" }, "canScrollPrev": { "type": "boolean", "description": "Whether the carousel is can scroll to the previous view" }, "scrollToIndex": { "type": "(index: number, instant?: boolean) => void", "description": "Function to scroll to a specific item index" }, "scrollTo": { "type": "(page: number, instant?: boolean) => void", "description": "Function to scroll to a specific page" }, "scrollNext": { "type": "(instant?: boolean) => void", "description": "Function to scroll to the next page" }, "scrollPrev": { "type": "(instant?: boolean) => void", "description": "Function to scroll to the previous page" }, "getProgress": { "type": "() => number", "description": "Returns the current scroll progress as a percentage" }, "getProgressText": { "type": "() => string", "description": "Returns the progress text" }, "play": { "type": "VoidFunction", "description": "Function to start/resume autoplay" }, "pause": { "type": "VoidFunction", "description": "Function to pause autoplay" }, "isInView": { "type": "(index: number) => boolean", "description": "Whether the item is in view" }, "refresh": { "type": "VoidFunction", "description": "Function to re-compute the snap points\nand clamp the page" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the carousel. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "slidesPerPage": { "type": "number | undefined", "description": "The number of slides to show at a time.", "defaultValue": "1" }, "autoSize": { "type": "boolean | undefined", "description": "Whether to enable variable width slides.", "defaultValue": "false" }, "slidesPerMove": { "type": "number | \"auto\" | undefined", "description": "The number of slides to scroll at a time.\n\nWhen set to `auto`, the number of slides to scroll is determined by the\n`slidesPerPage` property.", "defaultValue": "\"auto\"" }, "autoplay": { "type": "boolean | { delay: number } | undefined", "description": "Whether to scroll automatically. The default delay is 4000ms.", "defaultValue": "false" }, "allowMouseDrag": { "type": "boolean | undefined", "description": "Whether to allow scrolling via dragging with mouse", "defaultValue": "false" }, "loop": { "type": "boolean | undefined", "description": "Whether the carousel should loop around.", "defaultValue": "false" }, "page": { "type": "number | undefined", "description": "The controlled page of the carousel." }, "defaultPage": { "type": "number | undefined", "description": "The initial page to scroll to when rendered.\nUse when you don't need to control the page of the carousel.", "defaultValue": "0" }, "spacing": { "type": "string | undefined", "description": "The amount of space between items.", "defaultValue": "\"0px\"" }, "padding": { "type": "string | undefined", "description": "Defines the extra space added around the scrollable area,\nenabling nearby items to remain partially in view." }, "onPageChange": { "type": "((details: PageChangeDetails) => void) | undefined", "description": "Function called when the page changes." }, "inViewThreshold": { "type": "number | number[] | undefined", "description": "The threshold for determining if an item is in view.", "defaultValue": "0.6" }, "snapType": { "type": "\"proximity\" | \"mandatory\" | undefined", "description": "The snap type of the item.", "defaultValue": "\"mandatory\"" }, "slideCount": { "type": "number", "description": "The total number of slides.\nUseful for SSR to render the initial ating the snap points." }, "onDragStatusChange": { "type": "((details: DragStatusDetails) => void) | undefined", "description": "Function called when the drag status changes." }, "onAutoplayStatusChange": { "type": "((details: AutoplayStatusDetails) => void) | undefined", "description": "Function called when the autoplay status changes." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the element.", "defaultValue": "\"horizontal\"" } } }, "cascade-select": { "api": { "collection": { "type": "TreeCollection", "description": "The tree collection data" }, "open": { "type": "boolean", "description": "Whether the cascade-select is open" }, "focused": { "type": "boolean", "description": "Whether the cascade-select is focused" }, "multiple": { "type": "boolean", "description": "Whether the cascade-select allows multiple selections" }, "disabled": { "type": "boolean", "description": "Whether the cascade-select is disabled" }, "highlightedValue": { "type": "string[]", "description": "The value of the highlighted item" }, "highlightedItems": { "type": "V[]", "description": "The items along the highlighted path" }, "selectedItems": { "type": "V[][]", "description": "The selected items" }, "hasSelectedItems": { "type": "boolean", "description": "Whether there's a selected option" }, "empty": { "type": "boolean", "description": "Whether the cascade-select value is empty" }, "value": { "type": "string[][]", "description": "The current value of the cascade-select" }, "valueAsString": { "type": "string", "description": "The current value as text" }, "focus": { "type": "() => void", "description": "Function to focus on the select input" }, "reposition": { "type": "(options?: any) => void", "description": "Function to set the positioning options of the cascade-select" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open the cascade-select" }, "setHighlightValue": { "type": "(value: string | string[]) => void", "description": "Function to set the highlighted value (path or single value to find)" }, "clearHighlightValue": { "type": "() => void", "description": "Function to clear the highlighted value" }, "selectValue": { "type": "(value: string[]) => void", "description": "Function to select a value" }, "setValue": { "type": "(value: string[][]) => void", "description": "Function to set the value" }, "clearValue": { "type": "(value?: string[] | undefined) => void", "description": "Function to clear the value" }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a cascade-select item" } }, "context": { "collection": { "type": "TreeCollection | undefined", "description": "The tree collection data" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the cascade-select elements. Useful for composition." }, "name": { "type": "string | undefined", "description": "The name attribute of the underlying input element" }, "form": { "type": "string | undefined", "description": "The form attribute of the underlying input element" }, "value": { "type": "string[][] | undefined", "description": "The controlled value of the cascade-select" }, "defaultValue": { "type": "string[][] | undefined", "description": "The initial value of the cascade-select when rendered.\nUse when you don't need to control the value." }, "highlightedValue": { "type": "string[] | undefined", "description": "The controlled highlighted value of the cascade-select" }, "defaultHighlightedValue": { "type": "string[] | undefined", "description": "The initial highlighted value of the cascade-select when rendered." }, "multiple": { "type": "boolean | undefined", "description": "Whether to allow multiple selections", "defaultValue": "false" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the cascade-select" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the cascade-select when rendered.\nUse when you don't need to control the open state." }, "highlightTrigger": { "type": "\"click\" | \"hover\" | undefined", "description": "What triggers highlighting of items", "defaultValue": "\"click\"" }, "closeOnSelect": { "type": "boolean | undefined", "description": "Whether the cascade-select should close when an item is selected", "defaultValue": "true" }, "loopFocus": { "type": "boolean | undefined", "description": "Whether the cascade-select should loop focus when navigating with keyboard", "defaultValue": "false" }, "disabled": { "type": "boolean | undefined", "description": "Whether the cascade-select is disabled" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the cascade-select is read-only" }, "required": { "type": "boolean | undefined", "description": "Whether the cascade-select is required" }, "invalid": { "type": "boolean | undefined", "description": "Whether the cascade-select is invalid" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The positioning options for the cascade-select content" }, "scrollToIndexFn": { "type": "((details: ScrollToIndexDetails) => void) | undefined", "description": "Function to scroll to a specific index in a list" }, "formatValue": { "type": "((selectedItems: T[][]) => string) | undefined", "description": "Function to format the display value" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Called when the value changes" }, "onHighlightChange": { "type": "((details: HighlightChangeDetails) => void) | undefined", "description": "Called when the highlighted value changes" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Called when the open state changes" }, "allowParentSelection": { "type": "boolean | undefined", "description": "Whether parent (branch) items can be selectable" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "checkbox": { "api": { "checked": { "type": "boolean", "description": "Whether the checkbox is checked" }, "disabled": { "type": "boolean | undefined", "description": "Whether the checkbox is disabled" }, "indeterminate": { "type": "boolean", "description": "Whether the checkbox is indeterminate" }, "focused": { "type": "boolean | undefined", "description": "Whether the checkbox is focused" }, "checkedState": { "type": "CheckedState", "description": "The checked state of the checkbox" }, "setChecked": { "type": "(checked: CheckedState) => void", "description": "Function to set the checked state of the checkbox" }, "toggleChecked": { "type": "VoidFunction", "description": "Function to toggle the checked state of the checkbox" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the checkbox. Useful for composition." }, "disabled": { "type": "boolean | undefined", "description": "Whether the checkbox is disabled" }, "invalid": { "type": "boolean | undefined", "description": "Whether the checkbox is invalid" }, "required": { "type": "boolean | undefined", "description": "Whether the checkbox is required" }, "checked": { "type": "CheckedState | undefined", "description": "The controlled checked state of the checkbox" }, "defaultChecked": { "type": "CheckedState | undefined", "description": "The initial checked state of the checkbox when rendered.\nUse when you don't need to control the checked state of the checkbox." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the checkbox is read-only" }, "onCheckedChange": { "type": "((details: CheckedChangeDetails) => void) | undefined", "description": "The callback invoked when the checked state changes." }, "name": { "type": "string | undefined", "description": "The name of the input field in a checkbox.\nUseful for form submission." }, "form": { "type": "string | undefined", "description": "The id of the form that the checkbox belongs to." }, "value": { "type": "string | undefined", "description": "The value of checkbox input. Useful for form submission.", "defaultValue": "\"on\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "clipboard": { "api": { "copied": { "type": "boolean", "description": "Whether the value has been copied to the clipboard" }, "value": { "type": "string", "description": "The value to be copied to the clipboard" }, "setValue": { "type": "(value: string) => void", "description": "Set the value to be copied to the clipboard" }, "copy": { "type": "VoidFunction", "description": "Copy the value to the clipboard" } }, "context": { "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the clipboard. Useful for composition." }, "value": { "type": "string | undefined", "description": "The controlled value of the clipboard" }, "defaultValue": { "type": "string | undefined", "description": "The initial value to be copied to the clipboard when rendered.\nUse when you don't need to control the value of the clipboard." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "The function to be called when the value changes" }, "onStatusChange": { "type": "((details: CopyStatusDetails) => void) | undefined", "description": "The function to be called when the value is copied to the clipboard" }, "timeout": { "type": "number | undefined", "description": "The timeout for the copy operation", "defaultValue": "3000" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "collapsible": { "api": { "open": { "type": "boolean", "description": "Whether the collapsible is open." }, "visible": { "type": "boolean", "description": "Whether the collapsible is visible (open or closing)" }, "disabled": { "type": "boolean", "description": "Whether the collapsible is disabled" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the collapsible." }, "measureSize": { "type": "VoidFunction", "description": "Function to measure the size of the content." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the collapsible. Useful for composition." }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the collapsible." }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the collapsible when rendered.\nUse when you don't need to control the open state of the collapsible." }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "The callback invoked when the open state changes." }, "onExitComplete": { "type": "VoidFunction | undefined", "description": "The callback invoked when the exit animation completes." }, "disabled": { "type": "boolean | undefined", "description": "Whether the collapsible is disabled." }, "collapsedHeight": { "type": "number | string | undefined", "description": "The height of the content when collapsed." }, "collapsedWidth": { "type": "number | string | undefined", "description": "The width of the content when collapsed." }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" } } }, "color-picker": { "api": { "dragging": { "type": "boolean", "description": "Whether the color picker is being dragged" }, "open": { "type": "boolean", "description": "Whether the color picker is open" }, "inline": { "type": "boolean", "description": "Whether the color picker is rendered inline" }, "value": { "type": "Color", "description": "The current color value (as a string)" }, "valueAsString": { "type": "string", "description": "The current color value (as a Color object)" }, "setValue": { "type": "(value: string | Color) => void", "description": "Function to set the color value" }, "getChannelValue": { "type": "(channel: ColorChannel) => string", "description": "Function to set the color value" }, "getChannelValueText": { "type": "(channel: ColorChannel, locale: string) => string", "description": "Function to get the formatted and localized value of a specific channel" }, "setChannelValue": { "type": "(channel: ColorChannel, value: number) => void", "description": "Function to set the color value of a specific channel" }, "format": { "type": "ColorFormat", "description": "The current color format" }, "setFormat": { "type": "(format: ColorFormat) => void", "description": "Function to set the color format" }, "alpha": { "type": "number", "description": "The alpha value of the color" }, "setAlpha": { "type": "(value: number) => void", "description": "Function to set the color alpha" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the color picker" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the color picker. Useful for composition." }, "value": { "type": "Color | undefined", "description": "The controlled color value of the color picker" }, "defaultValue": { "type": "Color | undefined", "description": "The initial color value when rendered.\nUse when you don't need to control the color value of the color picker.", "defaultValue": "#000000" }, "disabled": { "type": "boolean | undefined", "description": "Whether the color picker is disabled" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the color picker is read-only" }, "required": { "type": "boolean | undefined", "description": "Whether the color picker is required" }, "invalid": { "type": "boolean | undefined", "description": "Whether the color picker is invalid" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Handler that is called when the value changes, as the user drags." }, "onValueChangeEnd": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Handler that is called when the user stops dragging." }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Handler that is called when the user opens or closes the color picker." }, "name": { "type": "string | undefined", "description": "The name for the form input" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The positioning options for the color picker" }, "initialFocusEl": { "type": "(() => HTMLElement | null | false) | undefined", "description": "The initial focus element when the color picker is opened.\nReturn `false` to skip moving focus, or `null` to use the default." }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the color picker" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the color picker when rendered.\nUse when you don't need to control the open state of the color picker." }, "format": { "type": "ColorFormat | undefined", "description": "The controlled color format to use" }, "defaultFormat": { "type": "ColorFormat | undefined", "description": "The initial color format when rendered.\nUse when you don't need to control the color format of the color picker.", "defaultValue": "\"rgba\"" }, "onFormatChange": { "type": "((details: FormatChangeDetails) => void) | undefined", "description": "Function called when the color format changes" }, "closeOnSelect": { "type": "boolean | undefined", "description": "Whether to close the color picker when a swatch is selected", "defaultValue": "false" }, "openAutoFocus": { "type": "boolean | undefined", "description": "Whether to auto focus the color picker when it is opened", "defaultValue": "true" }, "inline": { "type": "boolean | undefined", "description": "Whether to render the color picker inline" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "combobox": { "api": { "focused": { "type": "boolean", "description": "Whether the combobox is focused" }, "open": { "type": "boolean", "description": "Whether the combobox is open" }, "inputValue": { "type": "string", "description": "The value of the combobox input" }, "highlightedValue": { "type": "string | null", "description": "The value of the highlighted item" }, "highlightedItem": { "type": "V | null", "description": "The highlighted item" }, "setHighlightValue": { "type": "(value: string) => void", "description": "The value of the combobox input" }, "clearHighlightValue": { "type": "VoidFunction", "description": "Function to clear the highlighted value" }, "syncSelectedItems": { "type": "VoidFunction", "description": "Function to sync the selected items with the value.\nUseful when `value` is updated from async sources." }, "selectedItems": { "type": "V[]", "description": "The selected items" }, "hasSelectedItems": { "type": "boolean", "description": "Whether there's a selected item" }, "value": { "type": "string[]", "description": "The selected item keys" }, "valueAsString": { "type": "string", "description": "The string representation of the selected items" }, "selectValue": { "type": "(value: string) => void", "description": "Function to select a value" }, "setValue": { "type": "(value: string[]) => void", "description": "Function to set the value of the combobox" }, "clearValue": { "type": "(value?: string) => void", "description": "Function to clear the value of the combobox" }, "focus": { "type": "VoidFunction", "description": "Function to focus on the combobox input" }, "setInputValue": { "type": "(value: string, reason?: InputValueChangeReason) => void", "description": "Function to set the input value of the combobox" }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a combobox item" }, "setOpen": { "type": "(open: boolean, reason?: OpenChangeReason) => void", "description": "Function to open or close the combobox" }, "collection": { "type": "ListCollection", "description": "Function to toggle the combobox" }, "reposition": { "type": "(options?: Partial) => void", "description": "Function to set the positioning options" }, "multiple": { "type": "boolean", "description": "Whether the combobox allows multiple selections" }, "disabled": { "type": "boolean", "description": "Whether the combobox is disabled" } }, "context": { "open": { "type": "boolean | undefined", "description": "The controlled open state of the combobox" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the combobox when rendered.\nUse when you don't need to control the open state of the combobox." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the combobox. Useful for composition." }, "inputValue": { "type": "string | undefined", "description": "The controlled value of the combobox's input" }, "defaultInputValue": { "type": "string | undefined", "description": "The initial value of the combobox's input when rendered.\nUse when you don't need to control the value of the combobox's input.", "defaultValue": "\"\"" }, "name": { "type": "string | undefined", "description": "The `name` attribute of the combobox's input. Useful for form submission" }, "form": { "type": "string | undefined", "description": "The associate form of the combobox." }, "disabled": { "type": "boolean | undefined", "description": "Whether the combobox is disabled" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the combobox is readonly. This puts the combobox in a \"non-editable\" mode\nbut the user can still interact with it" }, "invalid": { "type": "boolean | undefined", "description": "Whether the combobox is invalid" }, "required": { "type": "boolean | undefined", "description": "Whether the combobox is required" }, "placeholder": { "type": "string | undefined", "description": "The placeholder text of the combobox's input" }, "defaultHighlightedValue": { "type": "string | null | undefined", "description": "The initial highlighted value of the combobox when rendered.\nUse when you don't need to control the highlighted value of the combobox." }, "highlightedValue": { "type": "string | null | undefined", "description": "The controlled highlighted value of the combobox" }, "value": { "type": "string[] | undefined", "description": "The controlled value of the combobox's selected items" }, "defaultValue": { "type": "string[] | undefined", "description": "The initial value of the combobox's selected items when rendered.\nUse when you don't need to control the value of the combobox's selected items.", "defaultValue": "[]" }, "inputBehavior": { "type": "\"autohighlight\" | \"autocomplete\" | \"none\" | undefined", "description": "Defines the auto-completion behavior of the combobox.\n\n- `autohighlight`: The first focused item is highlighted as the user types\n- `autocomplete`: Navigating the listbox with the arrow keys selects the item and the input is updated", "defaultValue": "\"none\"" }, "selectionBehavior": { "type": "\"clear\" | \"replace\" | \"preserve\" | undefined", "description": "The behavior of the combobox input when an item is selected\n\n- `replace`: The selected item string is set as the input value\n- `clear`: The input value is cleared\n- `preserve`: The input value is preserved", "defaultValue": "\"replace\"" }, "autoFocus": { "type": "boolean | undefined", "description": "Whether to autofocus the input on mount" }, "openOnClick": { "type": "boolean | undefined", "description": "Whether to open the combobox popup on initial click on the input", "defaultValue": "false" }, "openOnChange": { "type": "boolean | ((details: InputValueChangeDetails) => boolean) | undefined", "description": "Whether to show the combobox when the input value changes", "defaultValue": "true" }, "allowCustomValue": { "type": "boolean | undefined", "description": "Whether to allow typing custom values in the input" }, "alwaysSubmitOnEnter": { "type": "boolean | undefined", "description": "Whether to always submit on Enter key press, even if popup is open.\nUseful for single-field autocomplete forms where Enter should submit the form.", "defaultValue": "false" }, "loopFocus": { "type": "boolean | undefined", "description": "Whether to loop the keyboard navigation through the items", "defaultValue": "true" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The positioning options to dynamically position the menu", "defaultValue": "{ placement: \"bottom-start\" }" }, "onInputValueChange": { "type": "((details: InputValueChangeDetails) => void) | undefined", "description": "Function called when the input's value changes" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called when a new item is selected" }, "onHighlightChange": { "type": "((details: HighlightChangeDetails) => void) | undefined", "description": "Function called when an item is highlighted using the pointer\nor keyboard navigation." }, "onSelect": { "type": "((details: SelectionDetails) => void) | undefined", "description": "Function called when an item is selected" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the popup is opened" }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "collection": { "type": "ListCollection | undefined", "description": "The collection of items" }, "multiple": { "type": "boolean | undefined", "description": "Whether to allow multiple selection.\n\n**Good to know:** When `multiple` is `true`, the `selectionBehavior` is automatically set to `clear`.\nIt is recommended to render the selected items in a separate container." }, "closeOnSelect": { "type": "boolean | undefined", "description": "Whether to close the combobox when an item is selected." }, "openOnKeyPress": { "type": "boolean | undefined", "description": "Whether to open the combobox on arrow key press", "defaultValue": "true" }, "scrollToIndexFn": { "type": "((details: ScrollToIndexDetails) => void) | undefined", "description": "Function to scroll to a specific index" }, "composite": { "type": "boolean | undefined", "description": "Whether the combobox is a composed with other composite widgets like tabs", "defaultValue": "true" }, "disableLayer": { "type": "boolean | undefined", "description": "Whether to disable registering this a dismissable layer" }, "navigate": { "type": "((details: NavigateDetails) => void) | null | undefined", "description": "Function to navigate to the selected item" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "date-input": { "api": { "focused": { "type": "boolean", "description": "Whether the date input is focused" }, "disabled": { "type": "boolean", "description": "Whether the date input is disabled" }, "invalid": { "type": "boolean", "description": "Whether the date input is invalid" }, "value": { "type": "DateValue[]", "description": "The selected date(s)." }, "valueAsDate": { "type": "Date[]", "description": "The selected date(s) as Date objects." }, "valueAsString": { "type": "string[]", "description": "The selected date(s) as strings." }, "placeholderValue": { "type": "DateValue", "description": "The placeholder date." }, "displayValues": { "type": "IncompleteDate[]", "description": "Per-group editing state. Each IncompleteDate tracks which segments have been\nfilled in by the user (non-null = entered, null = placeholder)." }, "focus": { "type": "VoidFunction", "description": "Focuses the first segment." }, "setValue": { "type": "(values: DateValue[]) => void", "description": "Sets the selected date(s) to the given values." }, "clearValue": { "type": "VoidFunction", "description": "Clears the selected date(s)." }, "getSegments": { "type": "(props?: SegmentsProps | undefined) => DateSegment[]", "description": "Returns the segments for the given index." }, "getSegmentState": { "type": "(props: SegmentProps) => SegmentState", "description": "Returns the state details for a given segment." } }, "context": { "locale": { "type": "string | undefined", "description": "The locale (BCP 47 language tag) to use when formatting the date.", "defaultValue": "\"en-US\"" }, "createCalendar": { "type": "((identifier: CalendarIdentifier) => Calendar) | undefined", "description": "A function that creates a calendar object for a given calendar identifier.\nUse this to support non-Gregorian calendars (e.g., Persian, Islamic, Buddhist)." }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the date input. Useful for composition." }, "name": { "type": "string | undefined", "description": "The `name` attribute of the input element." }, "form": { "type": "string | undefined", "description": "The `form` attribute of the hidden input element." }, "timeZone": { "type": "string | undefined", "description": "The time zone to use", "defaultValue": "\"UTC\"" }, "disabled": { "type": "boolean | undefined", "description": "Whether the date input is disabled." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the date input is read-only." }, "required": { "type": "boolean | undefined", "description": "Whether the date input is required" }, "invalid": { "type": "boolean | undefined", "description": "Whether the date input is invalid" }, "isDateUnavailable": { "type": "((date: DateValue, locale: string) => boolean) | undefined", "description": "Returns whether a date is unavailable.\nWhen a committed date matches, the input is marked as invalid." }, "min": { "type": "DateValue | undefined", "description": "The minimum date that can be selected." }, "max": { "type": "DateValue | undefined", "description": "The maximum date that can be selected." }, "value": { "type": "DateValue[] | undefined", "description": "The controlled selected date(s)." }, "defaultValue": { "type": "DateValue[] | undefined", "description": "The initial selected date(s) when rendered.\nUse when you don't need to control the selected date(s)." }, "placeholderValue": { "type": "DateValue | undefined", "description": "The controlled placeholder date." }, "defaultPlaceholderValue": { "type": "DateValue | undefined", "description": "The initial placeholder date when rendered." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called when the value changes." }, "onPlaceholderChange": { "type": "((details: PlaceholderChangeDetails) => void) | undefined", "description": "A function called when the placeholder value changes." }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "A function called when the date input gains or loses focus." }, "selectionMode": { "type": "SelectionMode | undefined", "description": "The selection mode of the date input.\n- `single` - only one date can be entered\n- `range` - a range of dates can be entered (start and end)", "defaultValue": "\"single\"" }, "hourCycle": { "type": "HourCycle | undefined", "description": "Whether to use 12-hour or 24-hour time format.\nBy default, this is determined by the locale." }, "hideTimeZone": { "type": "boolean | undefined", "description": "Whether to hide the time zone segment when the value is a `ZonedDateTime`.\nHas no effect for values without a time zone.", "defaultValue": "false" }, "granularity": { "type": "DateGranularity | undefined", "description": "Determines the smallest unit that is displayed in the date input.", "defaultValue": "\"day\"" }, "shouldForceLeadingZeros": { "type": "boolean | undefined", "description": "Whether to always show leading zeros in month, day, and hour fields.\nWhen false, formatting follows the locale default (e.g. \"1\" instead of \"01\").", "defaultValue": "false" }, "formatter": { "type": "DateFormatter | undefined", "description": "The date formatter to use." }, "allSegments": { "type": "Segments | undefined", "description": "The computed segments map for the formatter." }, "format": { "type": "((date: DateValue, details: FormatDateDetails) => string) | undefined", "description": "The format function for converting a DateValue to a string." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "date-picker": { "api": { "focused": { "type": "boolean", "description": "Whether the input is focused" }, "open": { "type": "boolean", "description": "Whether the date picker is open" }, "disabled": { "type": "boolean", "description": "Whether the date picker is disabled" }, "invalid": { "type": "boolean", "description": "Whether the date picker is invalid" }, "readOnly": { "type": "boolean", "description": "Whether the date picker is read-only" }, "inline": { "type": "boolean", "description": "Whether the date picker is rendered inline" }, "numOfMonths": { "type": "number", "description": "The number of months to display" }, "showWeekNumbers": { "type": "boolean", "description": "Whether the week number column is shown in the day view" }, "selectionMode": { "type": "SelectionMode", "description": "The selection mode (single, multiple, or range)" }, "maxSelectedDates": { "type": "number | undefined", "description": "The maximum number of dates that can be selected (only for multiple selection mode)." }, "isMaxSelected": { "type": "boolean", "description": "Whether the maximum number of selected dates has been reached." }, "view": { "type": "DateView", "description": "The current view of the date picker" }, "getWeekNumber": { "type": "(week: DateValue[]) => number", "description": "Returns the ISO 8601 week number (1-53) for the given week (array of dates)." }, "getDaysInWeek": { "type": "(week: number, from?: DateValue) => DateValue[]", "description": "Returns an array of days in the week index counted from the provided start date, or the first visible date if not given." }, "getOffset": { "type": "(duration: DateDuration) => DateValueOffset", "description": "Returns the offset of the month based on the provided number of months." }, "getRangePresetValue": { "type": "(value: DateRangePreset) => DateValue[]", "description": "Returns the range of dates based on the provided date range preset." }, "getMonthWeeks": { "type": "(from?: DateValue) => DateValue[][]", "description": "Returns the weeks of the month from the provided date. Represented as an array of arrays of dates." }, "isUnavailable": { "type": "(date: DateValue) => boolean", "description": "Returns whether the provided date is available (or can be selected)" }, "weeks": { "type": "DateValue[][]", "description": "The weeks of the month. Represented as an array of arrays of dates." }, "weekDays": { "type": "WeekDay[]", "description": "The days of the week. Represented as an array of strings." }, "visibleRange": { "type": "VisibleRange", "description": "The visible range of dates." }, "visibleRangeText": { "type": "VisibleRangeText", "description": "The human readable text for the visible range of dates." }, "value": { "type": "DateValue[]", "description": "The selected date." }, "valueAsDate": { "type": "Date[]", "description": "The selected date as a Date object." }, "valueAsString": { "type": "string[]", "description": "The selected date as a string." }, "focusedValue": { "type": "DateValue", "description": "The focused date." }, "focusedValueAsDate": { "type": "Date", "description": "The focused date as a Date object." }, "focusedValueAsString": { "type": "string", "description": "The focused date as a string." }, "selectToday": { "type": "VoidFunction", "description": "Sets the selected date to today." }, "setValue": { "type": "(values: DateValue[]) => void", "description": "Sets the selected date to the given date." }, "setTime": { "type": "(time: Time, index?: number) => void", "description": "Sets the time for a specific date value.\nConverts CalendarDate to CalendarDateTime if needed." }, "setFocusedValue": { "type": "(value: DateValue) => void", "description": "Sets the focused date to the given date." }, "clearValue": { "type": "(options?: { focus?: boolean }) => void", "description": "Clears the selected date(s)." }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the calendar." }, "focusMonth": { "type": "(month: number) => void", "description": "Function to set the selected month." }, "focusYear": { "type": "(year: number) => void", "description": "Function to set the selected year." }, "getYears": { "type": "() => Cell[]", "description": "Returns the months of the year" }, "getYearsGrid": { "type": "(props?: YearGridProps) => YearGridValue", "description": "Returns the years of the decade based on the columns.\nRepresented as an array of arrays of years." }, "getDecade": { "type": "() => Range", "description": "Returns the start and end years of the decade." }, "getMonths": { "type": "(props?: MonthFormatOptions) => Cell[]", "description": "Returns the months of the year" }, "getMonthsGrid": { "type": "(props?: MonthGridProps) => MonthGridValue", "description": "Returns the months of the year based on the columns.\nRepresented as an array of arrays of months." }, "format": { "type": "(value: DateValue, opts?: Intl.DateTimeFormatOptions) => string", "description": "Formats the given date value based on the provided options." }, "setView": { "type": "(view: DateView) => void", "description": "Sets the view of the date picker." }, "goToNext": { "type": "VoidFunction", "description": "Goes to the next month/year/decade." }, "goToPrev": { "type": "VoidFunction", "description": "Goes to the previous month/year/decade." }, "getDayTableCellState": { "type": "(props: DayTableCellProps) => DayTableCellState", "description": "Returns the state details for a given cell." }, "getMonthTableCellState": { "type": "(props: TableCellProps) => TableCellState", "description": "Returns the state details for a given month cell." }, "getYearTableCellState": { "type": "(props: TableCellProps) => TableCellState", "description": "Returns the state details for a given year cell." } }, "context": { "locale": { "type": "string | undefined", "description": "The locale (BCP 47 language tag) to use when formatting the date.", "defaultValue": "\"en-US\"" }, "createCalendar": { "type": "((identifier: CalendarIdentifier) => Calendar) | undefined", "description": "A function that creates a Calendar object for a given calendar identifier.\nEnables non-Gregorian calendar support (Persian, Buddhist, Islamic, etc.)\nwithout bundling all calendars by default." }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the date picker. Useful for composition." }, "name": { "type": "string | undefined", "description": "The `name` attribute of the input element." }, "timeZone": { "type": "string | undefined", "description": "The time zone to use", "defaultValue": "\"UTC\"" }, "disabled": { "type": "boolean | undefined", "description": "Whether the calendar is disabled." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the calendar is read-only." }, "required": { "type": "boolean | undefined", "description": "Whether the date picker is required" }, "invalid": { "type": "boolean | undefined", "description": "Whether the date picker is invalid" }, "outsideDaySelectable": { "type": "boolean | undefined", "description": "Whether day outside the visible range can be selected.", "defaultValue": "false" }, "min": { "type": "DateValue | undefined", "description": "The minimum date that can be selected." }, "max": { "type": "DateValue | undefined", "description": "The maximum date that can be selected." }, "closeOnSelect": { "type": "boolean | undefined", "description": "Whether the calendar should close after the date selection is complete.\nThis is ignored when the selection mode is `multiple`.", "defaultValue": "true" }, "openOnClick": { "type": "boolean | undefined", "description": "Whether to open the calendar when the input is clicked.", "defaultValue": "false" }, "value": { "type": "DateValue[] | undefined", "description": "The controlled selected date(s)." }, "defaultValue": { "type": "DateValue[] | undefined", "description": "The initial selected date(s) when rendered.\nUse when you don't need to control the selected date(s) of the date picker." }, "focusedValue": { "type": "DateValue | undefined", "description": "The controlled focused date." }, "defaultFocusedValue": { "type": "DateValue | undefined", "description": "The initial focused date when rendered.\nUse when you don't need to control the focused date of the date picker." }, "numOfMonths": { "type": "number | undefined", "description": "The number of months to display." }, "startOfWeek": { "type": "number | undefined", "description": "The first day of the week.\n `0` - Sunday\n `1` - Monday\n `2` - Tuesday\n `3` - Wednesday\n `4` - Thursday\n `5` - Friday\n `6` - Saturday" }, "fixedWeeks": { "type": "boolean | undefined", "description": "Whether the calendar should have a fixed number of weeks.\nThis renders the calendar with 6 weeks instead of 5 or 6." }, "showWeekNumbers": { "type": "boolean | undefined", "description": "Whether to show the week number column in the day view." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called when the value changes." }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "Function called when the focused date changes." }, "onViewChange": { "type": "((details: ViewChangeDetails) => void) | undefined", "description": "Function called when the view changes." }, "onVisibleRangeChange": { "type": "((details: VisibleRangeChangeDetails) => void) | undefined", "description": "Function called when the visible range changes." }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the calendar opens or closes." }, "isDateUnavailable": { "type": "((date: DateValue, locale: string) => boolean) | undefined", "description": "Returns whether a date of the calendar is available." }, "selectionMode": { "type": "SelectionMode | undefined", "description": "The selection mode of the calendar.\n- `single` - only one date can be selected\n- `multiple` - multiple dates can be selected\n- `range` - a range of dates can be selected", "defaultValue": "\"single\"" }, "maxSelectedDates": { "type": "number | undefined", "description": "The maximum number of dates that can be selected.\nThis is only applicable when `selectionMode` is `multiple`." }, "format": { "type": "((date: DateValue, details: LocaleDetails) => string) | undefined", "description": "The format of the date to display in the input." }, "parse": { "type": "((value: string, details: LocaleDetails) => DateValue | undefined) | undefined", "description": "Function to parse the date from the input back to a DateValue." }, "placeholder": { "type": "string | undefined", "description": "The placeholder text to display in the input." }, "view": { "type": "DateView | undefined", "description": "The view of the calendar" }, "defaultView": { "type": "DateView | undefined", "description": "The default view of the calendar", "defaultValue": "\"day\"" }, "minView": { "type": "DateView | undefined", "description": "The minimum view of the calendar", "defaultValue": "\"day\"" }, "maxView": { "type": "DateView | undefined", "description": "The maximum view of the calendar", "defaultValue": "\"year\"" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The user provided options used to position the date picker content" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the date picker" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the date picker when rendered.\nUse when you don't need to control the open state of the date picker." }, "inline": { "type": "boolean | undefined", "description": "Whether to render the date picker inline" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "dialog": { "api": { "open": { "type": "boolean", "description": "Whether the dialog is open" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the dialog" }, "triggerValue": { "type": "string | null", "description": "The active trigger value" }, "setTriggerValue": { "type": "(value: string | null) => void", "description": "Function to set the active trigger value" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the dialog. Useful for composition." }, "trapFocus": { "type": "boolean | undefined", "description": "Whether to trap focus inside the dialog when it's opened", "defaultValue": "true" }, "preventScroll": { "type": "boolean | undefined", "description": "Whether to prevent scrolling behind the dialog when it's opened", "defaultValue": "true" }, "modal": { "type": "boolean | undefined", "description": "Whether to prevent pointer interaction outside the element and hide all content below it", "defaultValue": "true" }, "initialFocusEl": { "type": "(() => MaybeElement | false) | undefined", "description": "Element to receive focus when the dialog is opened.\nReturn `false` to skip moving focus, or `null` to use the default." }, "finalFocusEl": { "type": "(() => MaybeElement) | undefined", "description": "Element to receive focus when the dialog is closed" }, "restoreFocus": { "type": "boolean | undefined", "description": "Whether to restore focus to the element that had focus before the dialog was opened" }, "closeOnInteractOutside": { "type": "boolean | undefined", "description": "Whether to close the dialog when the outside is clicked", "defaultValue": "`true` for modal dialogs, `false` for non-modal dialogs" }, "closeOnEscape": { "type": "boolean | undefined", "description": "Whether to close the dialog when the escape key is pressed", "defaultValue": "true" }, "aria-label": { "type": "string | undefined", "description": "Human readable label for the dialog, in event the dialog title is not rendered" }, "role": { "type": "\"dialog\" | \"alertdialog\" | undefined", "description": "The dialog's role", "defaultValue": "\"dialog\"" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the dialog" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the dialog when rendered.\nUse when you don't need to control the open state of the dialog.", "defaultValue": "false" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function to call when the dialog's open state changes" }, "triggerValue": { "type": "string | null | undefined", "description": "The controlled active trigger value" }, "defaultTriggerValue": { "type": "string | null | undefined", "description": "The initial active trigger value when rendered.\nUse when you don't need to control the active trigger value." }, "onTriggerValueChange": { "type": "((details: TriggerValueChangeDetails) => void) | undefined", "description": "Function to call when the active trigger changes" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "drawer": { "api": { "open": { "type": "boolean", "description": "Whether the drawer is open." }, "dragging": { "type": "boolean", "description": "Whether the drawer is currently being dragged." }, "triggerValue": { "type": "string | null", "description": "The value of the active trigger." }, "setTriggerValue": { "type": "(value: string | null) => void", "description": "Set the active trigger value." }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the menu." }, "snapPoints": { "type": "SnapPoint[]", "description": "The snap points of the drawer." }, "swipeDirection": { "type": "SwipeDirection", "description": "The swipe direction of the drawer." }, "snapPoint": { "type": "SnapPoint | null", "description": "The currently active snap point." }, "setSnapPoint": { "type": "(snapPoint: SnapPoint | null) => void", "description": "Function to set the active snap point." }, "getOpenPercentage": { "type": "() => number", "description": "Get the current open percentage of the drawer." }, "getSnapPointIndex": { "type": "() => number", "description": "Get the index of the currently active snap point." }, "getContentSize": { "type": "() => number | null", "description": "Get the current main-axis size of the drawer content." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the drawer. Useful for composition." }, "trapFocus": { "type": "boolean | undefined", "description": "Whether to trap focus inside the sheet when it's opened.", "defaultValue": "true" }, "preventScroll": { "type": "boolean | undefined", "description": "Whether to prevent scrolling behind the sheet when it's opened", "defaultValue": "true" }, "modal": { "type": "boolean | undefined", "description": "Whether to prevent pointer interaction outside the element and hide all content below it.", "defaultValue": "true" }, "initialFocusEl": { "type": "(() => MaybeElement | false) | undefined", "description": "Element to receive focus when the sheet is opened.\nReturn `false` to skip moving focus, or `null` to use the default." }, "finalFocusEl": { "type": "(() => MaybeElement) | undefined", "description": "Element to receive focus when the sheet is closed." }, "restoreFocus": { "type": "boolean | undefined", "description": "Whether to restore focus to the element that had focus before the sheet was opened.", "defaultValue": "true" }, "role": { "type": "\"dialog\" | \"alertdialog\" | undefined", "description": "The sheet's role", "defaultValue": "\"dialog\"" }, "triggerValue": { "type": "string | null | undefined", "description": "The value of the trigger that currently controls the drawer." }, "defaultTriggerValue": { "type": "string | null | undefined", "description": "The default trigger value (uncontrolled)." }, "onTriggerValueChange": { "type": "((details: TriggerValueChangeDetails) => void) | undefined", "description": "Callback when the active trigger value changes." }, "open": { "type": "boolean | undefined", "description": "Whether the drawer is open." }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the drawer." }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the open state changes." }, "closeOnInteractOutside": { "type": "boolean | undefined", "description": "Whether to close the drawer when the outside is clicked.", "defaultValue": "true" }, "closeOnEscape": { "type": "boolean | undefined", "description": "Whether to close the drawer when the escape key is pressed.", "defaultValue": "true" }, "snapPoints": { "type": "SnapPoint[] | undefined", "description": "The snap points of the drawer.\nArray of numbers or strings representing the snap points.", "defaultValue": "[1]" }, "swipeDirection": { "type": "SwipeDirection | undefined", "description": "The direction in which the drawer can be swiped.", "defaultValue": "\"down\"" }, "snapToSequentialPoints": { "type": "boolean | undefined", "description": "Whether the drawer should snap to sequential points when swiping.", "defaultValue": "false" }, "swipeVelocityThreshold": { "type": "number | undefined", "description": "The threshold velocity (in pixels/s) for closing the drawer.", "defaultValue": "700" }, "closeThreshold": { "type": "number | undefined", "description": "The threshold distance for dismissing the drawer.", "defaultValue": "0.25" }, "preventDragOnScroll": { "type": "boolean | undefined", "description": "Whether to prevent dragging on scrollable elements.\nWhen enabled, the sheet will not start dragging if the user is interacting with a scrollable element.", "defaultValue": "true" }, "snapPoint": { "type": "SnapPoint | null | undefined", "description": "The currently active snap point." }, "defaultSnapPoint": { "type": "SnapPoint | null | undefined", "description": "The default snap point of the drawer.", "defaultValue": "1" }, "onSnapPointChange": { "type": "((details: SnapPointChangeDetails) => void) | undefined", "description": "Callback fired when the snap point changes." }, "stack": { "type": "DrawerStack | undefined", "description": "Optional external store for coordinating app-level drawer stack visuals\n(e.g. indent and background layers)." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "editable": { "api": { "editing": { "type": "boolean", "description": "Whether the editable is in edit mode" }, "empty": { "type": "boolean", "description": "Whether the editable value is empty" }, "value": { "type": "string", "description": "The current value of the editable" }, "valueText": { "type": "string", "description": "The current value of the editable, or the placeholder if the value is empty" }, "setValue": { "type": "(value: string) => void", "description": "Function to set the value of the editable" }, "clearValue": { "type": "VoidFunction", "description": "Function to clear the value of the editable" }, "edit": { "type": "VoidFunction", "description": "Function to enter edit mode" }, "cancel": { "type": "VoidFunction", "description": "Function to exit edit mode, and discard any changes" }, "submit": { "type": "VoidFunction", "description": "Function to exit edit mode, and submit any changes" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the editable. Useful for composition." }, "invalid": { "type": "boolean | undefined", "description": "Whether the input's value is invalid." }, "name": { "type": "string | undefined", "description": "The name attribute of the editable component. Used for form submission." }, "form": { "type": "string | undefined", "description": "The associate form of the underlying input." }, "autoResize": { "type": "boolean | undefined", "description": "Whether the editable should auto-resize to fit the content." }, "activationMode": { "type": "ActivationMode | undefined", "description": "The activation mode for the preview element.\n\n- \"focus\" - Enter edit mode when the preview is focused\n- \"dblclick\" - Enter edit mode when the preview is double-clicked\n- \"click\" - Enter edit mode when the preview is clicked\n- \"none\" - Edit can be triggered programmatically only", "defaultValue": "\"focus\"" }, "submitMode": { "type": "SubmitMode | undefined", "description": "The action that triggers submit in the edit mode:\n\n- \"enter\" - Trigger submit when the enter key is pressed\n- \"blur\" - Trigger submit when the editable is blurred\n- \"none\" - No action will trigger submit. You need to use the submit button\n- \"both\" - Pressing `Enter` and blurring the input will trigger submit", "defaultValue": "\"both\"" }, "selectOnFocus": { "type": "boolean | undefined", "description": "Whether to select the text in the input when it is focused.", "defaultValue": "true" }, "edit": { "type": "boolean | undefined", "description": "Whether the editable is in edit mode." }, "defaultEdit": { "type": "boolean | undefined", "description": "Whether the editable is in edit mode by default." }, "onEditChange": { "type": "((details: EditChangeDetails) => void) | undefined", "description": "Function to call when the edit mode changes." }, "maxLength": { "type": "number | undefined", "description": "The maximum number of characters allowed in the editable" }, "disabled": { "type": "boolean | undefined", "description": "Whether the editable is disabled." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the editable is read-only." }, "required": { "type": "boolean | undefined", "description": "Whether the editable is required." }, "placeholder": { "type": "string | { edit: string; preview: string } | undefined", "description": "The placeholder text for the editable." }, "translations": { "type": "IntlTranslations | undefined", "description": "The translations for the editable." }, "finalFocusEl": { "type": "(() => HTMLElement | null) | undefined", "description": "The element to receive focus when the editable is closed." }, "value": { "type": "string | undefined", "description": "The controlled value of the editable." }, "defaultValue": { "type": "string | undefined", "description": "The initial value of the editable when rendered.\nUse when you don't need to control the value of the editable." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function to call when the value changes." }, "onValueRevert": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function to call when the value is reverted." }, "onValueCommit": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function to call when the value is committed." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "file-upload": { "api": { "dragging": { "type": "boolean", "description": "Whether the user is dragging something over the root element" }, "focused": { "type": "boolean", "description": "Whether the user is focused on the dropzone element" }, "disabled": { "type": "boolean", "description": "Whether the file input is disabled" }, "readOnly": { "type": "boolean", "description": "Whether the file input is in read-only mode" }, "transforming": { "type": "boolean", "description": "Whether files are currently being transformed via `transformFiles`" }, "maxFilesReached": { "type": "boolean", "description": "Whether the maximum number of files has been reached" }, "remainingFiles": { "type": "number", "description": "The number of files that can still be added" }, "openFilePicker": { "type": "VoidFunction", "description": "Function to open the file dialog" }, "deleteFile": { "type": "(file: File, type?: ItemType | undefined) => void", "description": "Function to delete the file from the list" }, "acceptedFiles": { "type": "File[]", "description": "The accepted files that have been dropped or selected" }, "rejectedFiles": { "type": "FileRejection[]", "description": "The files that have been rejected" }, "setFiles": { "type": "(files: File[]) => void", "description": "Sets the accepted files" }, "clearFiles": { "type": "VoidFunction", "description": "Clears the accepted files" }, "clearRejectedFiles": { "type": "VoidFunction", "description": "Clears the rejected files" }, "getFileSize": { "type": "(file: File) => string", "description": "Returns the formatted file size (e.g. 1.2MB)" }, "createFileUrl": { "type": "(file: File, cb: (url: string) => void) => VoidFunction", "description": "Returns the preview url of a file.\nReturns a function to revoke the url." }, "setClipboardFiles": { "type": "(dt: DataTransfer | null) => boolean", "description": "Sets the clipboard files\nReturns `true` if the clipboard data contains files, `false` otherwise." } }, "context": { "name": { "type": "string | undefined", "description": "The name of the underlying file input" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "accept": { "type": "Record | FileMimeType | FileMimeType[] | undefined", "description": "The accept file types" }, "disabled": { "type": "boolean | undefined", "description": "Whether the file input is disabled" }, "required": { "type": "boolean | undefined", "description": "Whether the file input is required" }, "allowDrop": { "type": "boolean | undefined", "description": "Whether to allow drag and drop in the dropzone element", "defaultValue": "true" }, "maxFileSize": { "type": "number | undefined", "description": "The maximum file size in bytes", "defaultValue": "Infinity" }, "minFileSize": { "type": "number | undefined", "description": "The minimum file size in bytes", "defaultValue": "0" }, "maxFiles": { "type": "number | undefined", "description": "The maximum number of files", "defaultValue": "1" }, "preventDocumentDrop": { "type": "boolean | undefined", "description": "Whether to prevent the drop event on the document", "defaultValue": "true" }, "validate": { "type": "((file: File, details: FileValidateDetails) => FileError[] | null) | undefined", "description": "Function to validate a file" }, "defaultAcceptedFiles": { "type": "File[] | undefined", "description": "The default accepted files when rendered.\nUse when you don't need to control the accepted files of the input." }, "acceptedFiles": { "type": "File[] | undefined", "description": "The controlled accepted files" }, "onFileChange": { "type": "((details: FileChangeDetails) => void) | undefined", "description": "Function called when the value changes, whether accepted or rejected" }, "onFileAccept": { "type": "((details: FileAcceptDetails) => void) | undefined", "description": "Function called when the file is accepted" }, "onFileReject": { "type": "((details: FileRejectDetails) => void) | undefined", "description": "Function called when the file is rejected" }, "capture": { "type": "\"user\" | \"environment\" | undefined", "description": "The default camera to use when capturing media" }, "directory": { "type": "boolean | undefined", "description": "Whether to accept directories, only works in webkit browsers" }, "invalid": { "type": "boolean | undefined", "description": "Whether the file input is invalid" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the file input is read-only" }, "transformFiles": { "type": "((files: File[]) => Promise) | undefined", "description": "Function to transform the accepted files to apply transformations" }, "locale": { "type": "string | undefined", "description": "The current locale. Based on the BCP 47 definition.", "defaultValue": "\"en-US\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "floating-panel": { "api": { "open": { "type": "boolean", "description": "Whether the panel is open" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the panel" }, "dragging": { "type": "boolean", "description": "Whether the panel is being dragged" }, "resizing": { "type": "boolean", "description": "Whether the panel is being resized" }, "position": { "type": "Point", "description": "The position of the panel" }, "setPosition": { "type": "(position: Point) => void", "description": "Function to set the position of the panel" }, "size": { "type": "Size", "description": "The size of the panel" }, "setSize": { "type": "(size: Size) => void", "description": "Function to set the size of the panel" }, "minimize": { "type": "VoidFunction", "description": "Function to minimize the panel" }, "maximize": { "type": "VoidFunction", "description": "Function to maximize the panel" }, "restore": { "type": "VoidFunction", "description": "Function to restore the panel before it was minimized or maximized" }, "resizable": { "type": "boolean", "description": "Whether the panel is resizable" }, "draggable": { "type": "boolean", "description": "Whether the panel is draggable" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the floating panel. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "The translations for the floating panel." }, "strategy": { "type": "\"absolute\" | \"fixed\" | undefined", "description": "The strategy to use for positioning", "defaultValue": "\"fixed\"" }, "allowOverflow": { "type": "boolean | undefined", "description": "Whether the panel should be strictly contained within the boundary when dragging", "defaultValue": "true" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the panel" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the panel when rendered.\nUse when you don't need to control the open state of the panel.", "defaultValue": "false" }, "draggable": { "type": "boolean | undefined", "description": "Whether the panel is draggable", "defaultValue": "true" }, "resizable": { "type": "boolean | undefined", "description": "Whether the panel is resizable", "defaultValue": "true" }, "size": { "type": "Size | undefined", "description": "The size of the panel" }, "defaultSize": { "type": "Size | undefined", "description": "The default size of the panel" }, "minSize": { "type": "Size | undefined", "description": "The minimum size of the panel" }, "maxSize": { "type": "Size | undefined", "description": "The maximum size of the panel" }, "position": { "type": "Point | undefined", "description": "The controlled position of the panel" }, "defaultPosition": { "type": "Point | undefined", "description": "The initial position of the panel when rendered.\nUse when you don't need to control the position of the panel." }, "getAnchorPosition": { "type": "((details: AnchorPositionDetails) => Point) | undefined", "description": "Function that returns the initial position of the panel when it is opened.\nIf provided, will be used instead of the default position." }, "lockAspectRatio": { "type": "boolean | undefined", "description": "Whether the panel is locked to its aspect ratio" }, "closeOnEscape": { "type": "boolean | undefined", "description": "Whether the panel should close when the escape key is pressed" }, "getBoundaryEl": { "type": "(() => HTMLElement | null) | undefined", "description": "The boundary of the panel. Useful for recalculating the boundary rect when\nthe it is resized." }, "initialFocusEl": { "type": "(() => HTMLElement | null | false) | undefined", "description": "Element to receive focus when the panel is opened. Defaults to the panel content.\nReturn `false` to skip moving focus, or `null` to use the default." }, "finalFocusEl": { "type": "(() => HTMLElement | null) | undefined", "description": "Element to receive focus when the panel is closed.\nBy default, the trigger element is focused." }, "restoreFocus": { "type": "boolean | undefined", "description": "Whether to restore focus to the trigger when the panel is closed.", "defaultValue": "true" }, "disabled": { "type": "boolean | undefined", "description": "Whether the panel is disabled" }, "onPositionChange": { "type": "((details: PositionChangeDetails) => void) | undefined", "description": "Function called when the position of the panel changes via dragging" }, "onPositionChangeEnd": { "type": "((details: PositionChangeDetails) => void) | undefined", "description": "Function called when the position of the panel changes via dragging ends" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the panel is opened or closed" }, "onSizeChange": { "type": "((details: SizeChangeDetails) => void) | undefined", "description": "Function called when the size of the panel changes via resizing" }, "onSizeChangeEnd": { "type": "((details: SizeChangeDetails) => void) | undefined", "description": "Function called when the size of the panel changes via resizing ends" }, "persistRect": { "type": "boolean | undefined", "description": "Whether the panel size and position should be preserved when it is closed" }, "gridSize": { "type": "number | undefined", "description": "The snap grid for the panel", "defaultValue": "1" }, "onStageChange": { "type": "((details: StageChangeDetails) => void) | undefined", "description": "Function called when the stage of the panel changes" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "hover-card": { "api": { "open": { "type": "boolean", "description": "Whether the hover card is open" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open the hover card" }, "triggerValue": { "type": "string | null", "description": "The trigger value" }, "setTriggerValue": { "type": "(value: string | null) => void", "description": "Function to set the trigger value" }, "reposition": { "type": "(options?: Partial) => void", "description": "Function to reposition the popover" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the popover. Useful for composition." }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the hover card opens or closes." }, "openDelay": { "type": "number | undefined", "description": "The duration from when the mouse enters the trigger until the hover card opens.", "defaultValue": "600" }, "closeDelay": { "type": "number | undefined", "description": "The duration from when the mouse leaves the trigger or content until the hover card closes.", "defaultValue": "300" }, "disabled": { "type": "boolean | undefined", "description": "Whether the hover card is disabled" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the hover card" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the hover card when rendered.\nUse when you don't need to control the open state of the hover card." }, "positioning": { "type": "PositioningOptions | undefined", "description": "The user provided options used to position the popover content" }, "triggerValue": { "type": "string | null | undefined", "description": "The controlled trigger value" }, "defaultTriggerValue": { "type": "string | null | undefined", "description": "The initial trigger value when rendered.\nUse when you don't need to control the trigger value." }, "onTriggerValueChange": { "type": "((details: TriggerValueChangeDetails) => void) | undefined", "description": "Function called when the trigger value changes." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "image-cropper": { "api": { "zoom": { "type": "number", "description": "The current zoom level of the image." }, "rotation": { "type": "number", "description": "The current rotation of the image in degrees." }, "flip": { "type": "FlipState", "description": "The current flip state of the image." }, "crop": { "type": "Rect", "description": "The current crop area rectangle in viewport coordinates." }, "offset": { "type": "Point", "description": "The current offset (pan position) of the image." }, "naturalSize": { "type": "Size", "description": "The natural (original) size of the image." }, "viewportRect": { "type": "BoundingRect", "description": "The viewport rectangle dimensions and position." }, "dragging": { "type": "boolean", "description": "Whether the crop area is currently being dragged." }, "panning": { "type": "boolean", "description": "Whether the image is currently being panned." }, "setZoom": { "type": "(zoom: number) => void", "description": "Function to set the zoom level of the image." }, "zoomBy": { "type": "(delta: number) => void", "description": "Function to zoom the image by a relative amount." }, "setRotation": { "type": "(rotation: number) => void", "description": "Function to set the rotation of the image." }, "rotateBy": { "type": "(degrees: number) => void", "description": "Function to rotate the image by a relative amount in degrees." }, "setFlip": { "type": "(flip: Partial) => void", "description": "Function to set the flip state of the image." }, "flipHorizontally": { "type": "(value?: boolean) => void", "description": "Function to flip the image horizontally. Pass a boolean to set explicitly or omit to toggle." }, "flipVertically": { "type": "(value?: boolean) => void", "description": "Function to flip the image vertically. Pass a boolean to set explicitly or omit to toggle." }, "resize": { "type": "(handlePosition: HandlePosition, delta: number) => void", "description": "Function to resize the crop area from a handle programmatically." }, "setCrop": { "type": "(crop: Rect) => void", "description": "Function to set the crop area in viewport coordinates, constrained like `initialCrop`\n(min/max size, aspect ratio and viewport bounds). Zoom, rotation, flip and pan are kept.\nDoes nothing when `fixedCropArea` is set or before the viewport is measured." }, "reset": { "type": "() => void", "description": "Function to reset the cropper to its initial state." }, "getCroppedImage": { "type": "(options?: GetCroppedImageOptions) => Promise", "description": "Function to get the cropped image with all transformations applied.\nReturns a Promise that resolves to either a Blob or data URL." }, "getCropData": { "type": "() => CropData", "description": "Function to get the crop geometry in natural image pixels.\nThe rect is axis-aligned; `corners` preserves the exact source quad." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the image cropper elements" }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identify accessibility elements and their states." }, "initialCrop": { "type": "Rect | undefined", "description": "The initial rectangle of the crop area.\nIf not provided, a smart default will be computed based on viewport size and aspect ratio." }, "minWidth": { "type": "number | undefined", "description": "The minimum width of the crop area", "defaultValue": "40" }, "minHeight": { "type": "number | undefined", "description": "The minimum height of the crop area", "defaultValue": "40" }, "maxWidth": { "type": "number | undefined", "description": "The maximum width of the crop area", "defaultValue": "Infinity" }, "maxHeight": { "type": "number | undefined", "description": "The maximum height of the crop area", "defaultValue": "Infinity" }, "aspectRatio": { "type": "number | undefined", "description": "The aspect ratio to maintain for the crop area (width / height).\nFor example, an aspect ratio of 16 / 9 will maintain a width to height ratio of 16:9.\nIf not provided, the crop area can be freely resized." }, "cropShape": { "type": "\"rectangle\" | \"circle\" | undefined", "description": "The shape of the crop area.", "defaultValue": "\"rectangle\"" }, "zoom": { "type": "number | undefined", "description": "The controlled zoom level of the image." }, "rotation": { "type": "number | undefined", "description": "The controlled rotation of the image in degrees (0 - 360)." }, "flip": { "type": "FlipState | undefined", "description": "The controlled flip state of the image." }, "defaultZoom": { "type": "number | undefined", "description": "The initial zoom factor to apply to the image.", "defaultValue": "1" }, "defaultRotation": { "type": "number | undefined", "description": "The initial rotation to apply to the image in degrees.", "defaultValue": "0" }, "defaultFlip": { "type": "FlipState | undefined", "description": "The initial flip state to apply to the image.", "defaultValue": "{ horizontal: false, vertical: false }" }, "zoomStep": { "type": "number | undefined", "description": "The amount of zoom applied per wheel step.", "defaultValue": "0.1" }, "zoomSensitivity": { "type": "number | undefined", "description": "Controls how responsive pinch-to-zoom is.", "defaultValue": "2" }, "minZoom": { "type": "number | undefined", "description": "The minimum zoom factor allowed.", "defaultValue": "1" }, "maxZoom": { "type": "number | undefined", "description": "The maximum zoom factor allowed.", "defaultValue": "5" }, "nudgeStep": { "type": "number | undefined", "description": "The base nudge step for keyboard arrow keys (in pixels).", "defaultValue": "1" }, "nudgeStepShift": { "type": "number | undefined", "description": "The nudge step when Shift key is held (in pixels).", "defaultValue": "10" }, "nudgeStepCtrl": { "type": "number | undefined", "description": "The nudge step when Ctrl/Cmd key is held (in pixels).", "defaultValue": "50" }, "onZoomChange": { "type": "((details: ZoomChangeDetails) => void) | undefined", "description": "Callback fired when the zoom level changes." }, "onRotationChange": { "type": "((details: RotationChangeDetails) => void) | undefined", "description": "Callback fired when the rotation changes." }, "onFlipChange": { "type": "((details: FlipChangeDetails) => void) | undefined", "description": "Callback fired when the flip state changes." }, "onCropChange": { "type": "((details: CropChangeDetails) => void) | undefined", "description": "Callback fired when the crop area changes." }, "fixedCropArea": { "type": "boolean | undefined", "description": "Whether the crop area is fixed in size and position.", "defaultValue": "false" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "listbox": { "api": { "empty": { "type": "boolean", "description": "Whether the select value is empty" }, "highlightedValue": { "type": "string | null", "description": "The value of the highlighted item" }, "highlightedItem": { "type": "V | null", "description": "The highlighted item" }, "highlightValue": { "type": "(value: string) => void", "description": "Function to highlight a value" }, "highlightFirst": { "type": "VoidFunction", "description": "Function to highlight the first value" }, "highlightLast": { "type": "VoidFunction", "description": "Function to highlight the last value" }, "highlightNext": { "type": "VoidFunction", "description": "Function to highlight the next value" }, "highlightPrevious": { "type": "VoidFunction", "description": "Function to highlight the previous value" }, "clearHighlightedValue": { "type": "VoidFunction", "description": "Function to clear the highlighted value" }, "selectedItems": { "type": "V[]", "description": "The selected items" }, "hasSelectedItems": { "type": "boolean", "description": "Whether there's a selected option" }, "value": { "type": "string[]", "description": "The selected item keys" }, "valueAsString": { "type": "string", "description": "The string representation of the selected items" }, "selectValue": { "type": "(value: string) => void", "description": "Function to select a value" }, "selectAll": { "type": "VoidFunction", "description": "Function to select all values.\n\n**Note**: This should only be called when the selectionMode is `multiple` or `extended`.\nOtherwise, an exception will be thrown." }, "setValue": { "type": "(value: string[]) => void", "description": "Function to set the value of the select" }, "clearValue": { "type": "(value?: string) => void", "description": "Function to clear the value of the select.\nIf a value is provided, it will only clear that value, otherwise, it will clear all values." }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a select item" }, "collection": { "type": "ListCollection", "description": "Function to toggle the select" }, "disabled": { "type": "boolean", "description": "Whether the select is disabled" } }, "context": { "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the listbox.", "defaultValue": "\"vertical\"" }, "collection": { "type": "ListCollection | GridCollection", "description": "The item collection" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the listbox. Useful for composition." }, "disabled": { "type": "boolean | undefined", "description": "Whether the listbox is disabled" }, "disallowSelectAll": { "type": "boolean | undefined", "description": "Whether to disallow selecting all items when `meta+a` is pressed" }, "onHighlightChange": { "type": "((details: HighlightChangeDetails) => void) | undefined", "description": "The callback fired when the highlighted item changes." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "The callback fired when the selected item changes." }, "value": { "type": "string[] | undefined", "description": "The controlled keys of the selected items" }, "defaultValue": { "type": "string[] | undefined", "description": "The initial default value of the listbox when rendered.\nUse when you don't need to control the value of the listbox.", "defaultValue": "[]" }, "highlightedValue": { "type": "string | null | undefined", "description": "The controlled key of the highlighted item" }, "defaultHighlightedValue": { "type": "string | null | undefined", "description": "The initial value of the highlighted item when opened.\nUse when you don't need to control the highlighted value of the listbox." }, "loopFocus": { "type": "boolean | undefined", "description": "Whether to loop the keyboard navigation through the options", "defaultValue": "false" }, "selectionMode": { "type": "SelectionMode | undefined", "description": "How multiple selection should behave in the listbox.\n\n- `single`: The user can select a single item.\n- `multiple`: The user can select multiple items without using modifier keys.\n- `extended`: The user can select multiple items by using modifier keys.", "defaultValue": "\"single\"" }, "scrollToIndexFn": { "type": "((details: ScrollToIndexDetails) => void) | undefined", "description": "Function to scroll to a specific index" }, "selectOnHighlight": { "type": "boolean | undefined", "description": "Whether to select the item when it is highlighted" }, "deselectable": { "type": "boolean | undefined", "description": "Whether to disallow empty selection" }, "typeahead": { "type": "boolean | undefined", "description": "Whether to enable typeahead on the listbox" }, "onSelect": { "type": "((details: SelectionDetails) => void) | undefined", "description": "Function called when an item is selected" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "marquee": { "api": { "paused": { "type": "boolean", "description": "Whether the marquee is currently paused." }, "orientation": { "type": "\"horizontal\" | \"vertical\"", "description": "The current orientation of the marquee." }, "side": { "type": "Side", "description": "The current side/direction of the marquee." }, "multiplier": { "type": "number", "description": "The multiplier for auto-fill. Indicates how many times to duplicate content.\nWhen autoFill is enabled and content is smaller than container, this returns\nthe number of additional copies needed. Otherwise returns 1." }, "contentCount": { "type": "number", "description": "The total number of content elements to render (original + clones).\nUse this value when rendering your content in a loop." }, "pause": { "type": "VoidFunction", "description": "Pause the marquee animation." }, "resume": { "type": "VoidFunction", "description": "Resume the marquee animation." }, "togglePause": { "type": "VoidFunction", "description": "Toggle the pause state." }, "restart": { "type": "VoidFunction", "description": "Restart the marquee animation from the beginning." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the marquee. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "side": { "type": "Side | undefined", "description": "The side/direction the marquee scrolls towards.", "defaultValue": "\"start\"" }, "speed": { "type": "number | undefined", "description": "The speed of the marquee animation in pixels per second.", "defaultValue": "50" }, "delay": { "type": "number | undefined", "description": "The delay before the animation starts (in seconds).", "defaultValue": "0" }, "loopCount": { "type": "number | undefined", "description": "The number of times to loop the animation (0 = infinite).", "defaultValue": "0" }, "spacing": { "type": "string | undefined", "description": "The spacing between marquee items.", "defaultValue": "\"1rem\"" }, "autoFill": { "type": "boolean | undefined", "description": "Whether to automatically duplicate content to fill the container.", "defaultValue": "false" }, "pauseOnInteraction": { "type": "boolean | undefined", "description": "Whether to pause the marquee on user interaction (hover, focus).", "defaultValue": "false" }, "reverse": { "type": "boolean | undefined", "description": "Whether to reverse the animation direction.", "defaultValue": "false" }, "paused": { "type": "boolean | undefined", "description": "Whether the marquee is paused." }, "defaultPaused": { "type": "boolean | undefined", "description": "Whether the marquee is paused by default.", "defaultValue": "false" }, "onPauseChange": { "type": "((details: PauseStatusDetails) => void) | undefined", "description": "Function called when the pause status changes." }, "onLoopComplete": { "type": "(() => void) | undefined", "description": "Function called when the marquee completes one loop iteration." }, "onComplete": { "type": "(() => void) | undefined", "description": "Function called when the marquee completes all loops and stops.\nOnly fires for finite loops (loopCount > 0)." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "menu": { "api": { "open": { "type": "boolean", "description": "Whether the menu is open" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the menu" }, "triggerValue": { "type": "string | null", "description": "The trigger value" }, "setTriggerValue": { "type": "(value: string | null) => void", "description": "Function to set the trigger value" }, "highlightedValue": { "type": "string | null", "description": "The id of the currently highlighted menuitem" }, "setHighlightedValue": { "type": "(value: string) => void", "description": "Function to set the highlighted menuitem" }, "setParent": { "type": "(parent: MenuService) => void", "description": "Function to register a parent menu. This is used for submenus" }, "setChild": { "type": "(child: MenuService) => void", "description": "Function to register a child menu. This is used for submenus" }, "reposition": { "type": "(options?: Partial) => void", "description": "Function to reposition the popover" }, "getOptionItemState": { "type": "(props: OptionItemProps) => OptionItemState", "description": "Returns the state of the option item" }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of the menu item" }, "addItemListener": { "type": "(props: ItemListenerProps) => VoidFunction | undefined", "description": "Setup the custom event listener for item selection event" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the menu. Useful for composition." }, "defaultHighlightedValue": { "type": "string | null | undefined", "description": "The initial highlighted value of the menu item when rendered.\nUse when you don't need to control the highlighted value of the menu item." }, "highlightedValue": { "type": "string | null | undefined", "description": "The controlled highlighted value of the menu item." }, "onHighlightChange": { "type": "((details: HighlightChangeDetails) => void) | undefined", "description": "Function called when the highlighted menu item changes." }, "onSelect": { "type": "((details: SelectionDetails) => void) | undefined", "description": "Function called when a menu item is selected." }, "anchorPoint": { "type": "Point | null | undefined", "description": "The positioning point for the menu. Can be set by the context menu trigger or the button trigger." }, "loopFocus": { "type": "boolean | undefined", "description": "Whether to loop the keyboard navigation.", "defaultValue": "false" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The options used to dynamically position the menu" }, "closeOnSelect": { "type": "boolean | undefined", "description": "Whether to close the menu when an option is selected", "defaultValue": "true" }, "aria-label": { "type": "string | undefined", "description": "The accessibility label for the menu" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the menu" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the menu opens or closes" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the menu when rendered.\nUse when you don't need to control the open state of the menu." }, "typeahead": { "type": "boolean | undefined", "description": "Whether the pressing printable characters should trigger typeahead navigation", "defaultValue": "true" }, "composite": { "type": "boolean | undefined", "description": "Whether the menu is a composed with other composite widgets like a combobox or tabs", "defaultValue": "true" }, "navigate": { "type": "((details: NavigateDetails) => void) | null | undefined", "description": "Function to navigate to the selected item if it's an anchor element" }, "triggerValue": { "type": "string | null | undefined", "description": "The controlled trigger value" }, "defaultTriggerValue": { "type": "string | null | undefined", "description": "The initial trigger value when rendered.\nUse when you don't need to control the trigger value." }, "onTriggerValueChange": { "type": "((details: TriggerValueChangeDetails) => void) | undefined", "description": "Function called when the trigger value changes." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "navigation-menu": { "api": { "value": { "type": "string | null", "description": "The current value of the menu" }, "setValue": { "type": "(value: string) => void", "description": "Sets the value of the menu" }, "open": { "type": "boolean", "description": "Whether the menu is open" }, "isViewportRendered": { "type": "boolean", "description": "Whether the viewport is rendered" }, "getViewportNode": { "type": "() => HTMLElement | null", "description": "Gets the viewport node element" }, "orientation": { "type": "Orientation", "description": "The orientation of the menu" }, "reposition": { "type": "VoidFunction", "description": "Function to reposition the viewport" } }, "context": { "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the machine." }, "value": { "type": "string | undefined", "description": "The controlled value of the navigation menu" }, "defaultValue": { "type": "string | undefined", "description": "The default value of the navigation menu.\nUse when you don't want to control the value of the menu." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called when the value of the menu changes" }, "openDelay": { "type": "number | undefined", "description": "The delay before the menu opens", "defaultValue": "200" }, "closeDelay": { "type": "number | undefined", "description": "The delay before the menu closes", "defaultValue": "300" }, "disableClickTrigger": { "type": "boolean | undefined", "description": "Whether to disable the click trigger" }, "disableHoverTrigger": { "type": "boolean | undefined", "description": "Whether to disable the hover trigger" }, "disablePointerLeaveClose": { "type": "boolean | undefined", "description": "Whether to disable the pointer leave close" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the element.", "defaultValue": "\"horizontal\"" } } }, "number-input": { "api": { "focused": { "type": "boolean", "description": "Whether the input is focused." }, "invalid": { "type": "boolean", "description": "Whether the input is invalid." }, "empty": { "type": "boolean", "description": "Whether the input value is empty." }, "value": { "type": "string", "description": "The formatted value of the input." }, "valueAsNumber": { "type": "number", "description": "The value of the input as a number." }, "setValue": { "type": "(value: number) => void", "description": "Function to set the value of the input." }, "clearValue": { "type": "VoidFunction", "description": "Function to clear the value of the input." }, "increment": { "type": "VoidFunction", "description": "Function to increment the value of the input by the step." }, "decrement": { "type": "VoidFunction", "description": "Function to decrement the value of the input by the step." }, "setToMax": { "type": "VoidFunction", "description": "Function to set the value of the input to the max." }, "setToMin": { "type": "VoidFunction", "description": "Function to set the value of the input to the min." }, "focus": { "type": "VoidFunction", "description": "Function to focus the input." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the number input. Useful for composition." }, "name": { "type": "string | undefined", "description": "The name attribute of the number input. Useful for form submission." }, "form": { "type": "string | undefined", "description": "The associate form of the input element." }, "disabled": { "type": "boolean | undefined", "description": "Whether the number input is disabled." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the number input is readonly" }, "invalid": { "type": "boolean | undefined", "description": "Whether the number input value is invalid." }, "required": { "type": "boolean | undefined", "description": "Whether the number input is required" }, "pattern": { "type": "string | undefined", "description": "The pattern used to check the element's value against", "defaultValue": "\"-?[0-9]*(.[0-9]+)?\"" }, "value": { "type": "string | undefined", "description": "The controlled value of the input" }, "defaultValue": { "type": "string | undefined", "description": "The initial value of the input when rendered.\nUse when you don't need to control the value of the input." }, "min": { "type": "number | undefined", "description": "The minimum value of the number input", "defaultValue": "Number.MIN_SAFE_INTEGER" }, "max": { "type": "number | undefined", "description": "The maximum value of the number input", "defaultValue": "Number.MAX_SAFE_INTEGER" }, "step": { "type": "number | undefined", "description": "The amount to increment or decrement the value by", "defaultValue": "1" }, "largeStep": { "type": "number | undefined", "description": "The amount to increment or decrement the value by when the `Shift` key is held.", "defaultValue": "10 * step" }, "smallStep": { "type": "number | undefined", "description": "The amount to increment or decrement the value by when the `Alt` key is held.", "defaultValue": "step / 10" }, "allowMouseWheel": { "type": "boolean | undefined", "description": "Whether to allow mouse wheel to change the value" }, "allowOverflow": { "type": "boolean | undefined", "description": "Whether to allow the value overflow the min/max range", "defaultValue": "true" }, "clampValueOnBlur": { "type": "boolean | undefined", "description": "Whether to clamp the value when the input loses focus (blur)", "defaultValue": "true" }, "focusInputOnChange": { "type": "boolean | undefined", "description": "Whether to focus input when the value changes", "defaultValue": "true" }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "formatOptions": { "type": "Intl.NumberFormatOptions | undefined", "description": "The options to pass to the `Intl.NumberFormat` constructor" }, "inputMode": { "type": "InputMode | undefined", "description": "Hints at the type of data that might be entered by the user. It also determines\nthe type of keyboard shown to the user on mobile devices", "defaultValue": "\"decimal\"" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function invoked when the value changes" }, "onValueInvalid": { "type": "((details: ValueInvalidDetails) => void) | undefined", "description": "Function invoked when the value overflows or underflows the min/max range" }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "Function invoked when the number input is focused" }, "onValueCommit": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function invoked when the value is committed (when the input is blurred or the Enter key is pressed)" }, "spinOnPress": { "type": "boolean | undefined", "description": "Whether to spin the value when the increment/decrement button is pressed", "defaultValue": "true" }, "locale": { "type": "string | undefined", "description": "The current locale. Based on the BCP 47 definition.", "defaultValue": "\"en-US\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "pagination": { "api": { "page": { "type": "number", "description": "The current page." }, "count": { "type": "number", "description": "The total number of data items." }, "pageSize": { "type": "number", "description": "The number of data items per page." }, "totalPages": { "type": "number", "description": "The total number of pages." }, "pages": { "type": "Pages", "description": "The page range. Represented as an array of page numbers (including ellipsis)" }, "previousPage": { "type": "number | null", "description": "The previous page." }, "nextPage": { "type": "number | null", "description": "The next page." }, "pageRange": { "type": "PageRange", "description": "The page range. Represented as an object with `start` and `end` properties." }, "type": { "type": "\"button\" | \"link\"", "description": "The type of the pagination controls." }, "getPageUrl": { "type": "(page: number) => string | undefined", "description": "Returns the url for the given page, or `undefined` when `getPageUrl` is not provided." }, "slice": { "type": "(data: V[]) => V[]", "description": "Function to slice an array of data based on the current page." }, "setPageSize": { "type": "(size: number) => void", "description": "Function to set the page size." }, "setPage": { "type": "(page: number) => void", "description": "Function to set the current page." }, "goToNextPage": { "type": "VoidFunction", "description": "Function to go to the next page." }, "goToPrevPage": { "type": "VoidFunction", "description": "Function to go to the previous page." }, "goToFirstPage": { "type": "VoidFunction", "description": "Function to go to the first page." }, "goToLastPage": { "type": "VoidFunction", "description": "Function to go to the last page." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the accordion. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "count": { "type": "number | undefined", "description": "Total number of data items" }, "pageSize": { "type": "number | undefined", "description": "The controlled number of data items per page" }, "defaultPageSize": { "type": "number | undefined", "description": "The initial number of data items per page when rendered.\nUse when you don't need to control the page size of the pagination.", "defaultValue": "10" }, "siblingCount": { "type": "number | undefined", "description": "Number of pages to show beside active page", "defaultValue": "1" }, "boundaryCount": { "type": "number | undefined", "description": "Number of pages to show at the beginning and end", "defaultValue": "1" }, "page": { "type": "number | undefined", "description": "The controlled active page" }, "defaultPage": { "type": "number | undefined", "description": "The initial active page when rendered.\nUse when you don't need to control the active page of the pagination.", "defaultValue": "1" }, "onPageChange": { "type": "((details: PageChangeDetails) => void) | undefined", "description": "Called when the page number is changed" }, "onPageSizeChange": { "type": "((details: PageSizeChangeDetails) => void) | undefined", "description": "Called when the page size is changed" }, "type": { "type": "\"button\" | \"link\" | undefined", "description": "The type of the trigger element", "defaultValue": "\"button\"" }, "getPageUrl": { "type": "((details: PageUrlDetails) => string) | undefined", "description": "Function to generate href attributes for pagination links.\nOnly used when `type` is set to \"link\"." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "password-input": { "api": { "visible": { "type": "boolean", "description": "Whether the password input is visible." }, "disabled": { "type": "boolean", "description": "Whether the password input is disabled." }, "invalid": { "type": "boolean", "description": "Whether the password input is invalid." }, "focus": { "type": "VoidFunction", "description": "Focus the password input." }, "setVisible": { "type": "(value: boolean) => void", "description": "Set the visibility of the password input." }, "toggleVisible": { "type": "VoidFunction", "description": "Toggle the visibility of the password input." } }, "context": { "defaultVisible": { "type": "boolean | undefined", "description": "The default visibility of the password input." }, "visible": { "type": "boolean | undefined", "description": "Whether the password input is visible." }, "onVisibilityChange": { "type": "((details: VisibilityChangeDetails) => void) | undefined", "description": "Function called when the visibility changes." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the password input parts" }, "disabled": { "type": "boolean | undefined", "description": "Whether the password input is disabled." }, "invalid": { "type": "boolean | undefined", "description": "The invalid state of the password input." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the password input is read only." }, "required": { "type": "boolean | undefined", "description": "Whether the password input is required." }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "ignorePasswordManagers": { "type": "boolean | undefined", "description": "When `true`, the input will ignore password managers.\n\n**Only works for the following password managers**\n- 1Password, LastPass, Bitwarden, Dashlane, Proton Pass" }, "autoComplete": { "type": "\"current-password\" | \"new-password\" | undefined", "description": "The autocomplete attribute for the password input.", "defaultValue": "\"current-password\"" }, "name": { "type": "string | undefined", "description": "The name of the password input." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "pin-input": { "api": { "value": { "type": "string[]", "description": "The value of the input as an array of strings." }, "valueAsString": { "type": "string", "description": "The value of the input as a string." }, "complete": { "type": "boolean", "description": "Whether all inputs are filled." }, "count": { "type": "number", "description": "The number of inputs to render" }, "items": { "type": "number[]", "description": "The array of input values." }, "setValue": { "type": "(value: string[]) => void", "description": "Function to set the value of the inputs." }, "clearValue": { "type": "VoidFunction", "description": "Function to clear the value of the inputs." }, "setValueAtIndex": { "type": "(index: number, value: string) => void", "description": "Function to set the value of the input at a specific index." }, "focus": { "type": "VoidFunction", "description": "Function to focus the pin-input. This will focus the first input." } }, "context": { "name": { "type": "string | undefined", "description": "The name of the input element. Useful for form submission." }, "form": { "type": "string | undefined", "description": "The associate form of the underlying input element." }, "pattern": { "type": "string | undefined", "description": "The regular expression that the user-entered input value is checked against." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the pin input. Useful for composition." }, "disabled": { "type": "boolean | undefined", "description": "Whether the inputs are disabled" }, "placeholder": { "type": "string | undefined", "description": "The placeholder text for the input", "defaultValue": "\"â—‹\"" }, "autoFocus": { "type": "boolean | undefined", "description": "Whether to auto-focus the first input." }, "invalid": { "type": "boolean | undefined", "description": "Whether the pin input is in the invalid state" }, "required": { "type": "boolean | undefined", "description": "Whether the pin input is required" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the pin input is in the valid state" }, "otp": { "type": "boolean | undefined", "description": "If `true`, the pin input component signals to its fields that they should\nuse `autocomplete=\"one-time-code\"`." }, "value": { "type": "string[] | undefined", "description": "The controlled value of the the pin input." }, "defaultValue": { "type": "string[] | undefined", "description": "The initial value of the the pin input when rendered.\nUse when you don't need to control the value of the pin input." }, "type": { "type": "\"alphanumeric\" | \"numeric\" | \"alphabetic\" | undefined", "description": "The type of value the pin-input should allow", "defaultValue": "\"numeric\"" }, "onValueComplete": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called when all inputs have valid values" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called on input change" }, "onValueInvalid": { "type": "((details: ValueInvalidDetails) => void) | undefined", "description": "Function called when an invalid value is entered" }, "mask": { "type": "boolean | undefined", "description": "If `true`, the input's value will be masked just like `type=password`" }, "autoSubmit": { "type": "boolean | undefined", "description": "Whether to auto-submit the owning form when all inputs are filled." }, "blurOnComplete": { "type": "boolean | undefined", "description": "Whether to blur the input when the value is complete" }, "selectOnFocus": { "type": "boolean | undefined", "description": "Whether to select input value when input is focused" }, "sanitizeValue": { "type": "((value: string) => string) | undefined", "description": "Function to sanitize pasted values before validation.\nUseful for stripping dashes, spaces, or other formatting." }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "count": { "type": "number | undefined", "description": "The number of inputs to render to improve SSR aria attributes.\nThis will be required in next major version." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "popover": { "api": { "portalled": { "type": "boolean", "description": "Whether the popover is portalled." }, "open": { "type": "boolean", "description": "Whether the popover is open" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the popover" }, "triggerValue": { "type": "string | null", "description": "The trigger value" }, "setTriggerValue": { "type": "(value: string | null) => void", "description": "Function to set the trigger value" }, "reposition": { "type": "(options?: Partial) => void", "description": "Function to reposition the popover" } }, "context": { "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the popover. Useful for composition." }, "modal": { "type": "boolean | undefined", "description": "Whether the popover should be modal. When set to `true`:\n- interaction with outside elements will be disabled\n- only popover content will be visible to screen readers\n- scrolling is blocked\n- focus is trapped within the popover", "defaultValue": "false" }, "portalled": { "type": "boolean | undefined", "description": "Whether the popover is portalled. This will proxy the tabbing behavior regardless of the DOM position\nof the popover content.", "defaultValue": "true" }, "autoFocus": { "type": "boolean | undefined", "description": "Whether to automatically set focus on the first focusable\ncontent within the popover when opened.", "defaultValue": "true" }, "initialFocusEl": { "type": "(() => HTMLElement | null | false) | undefined", "description": "The element to focus on when the popover is opened.\nReturn `false` to skip moving focus, or `null` to use the default." }, "finalFocusEl": { "type": "(() => MaybeElement) | undefined", "description": "Element to receive focus when the popover is closed." }, "restoreFocus": { "type": "boolean | undefined", "description": "Whether to restore focus to the element that had focus before the popover was opened.", "defaultValue": "true" }, "closeOnInteractOutside": { "type": "boolean | undefined", "description": "Whether to close the popover when the user clicks outside of the popover.", "defaultValue": "true" }, "closeOnEscape": { "type": "boolean | undefined", "description": "Whether to close the popover when the escape key is pressed.", "defaultValue": "true" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function invoked when the popover opens or closes" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The user provided options used to position the popover content" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the popover" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the popover when rendered.\nUse when you don't need to control the open state of the popover." }, "triggerValue": { "type": "string | null | undefined", "description": "The controlled trigger value" }, "defaultTriggerValue": { "type": "string | null | undefined", "description": "The initial trigger value when rendered.\nUse when you don't need to control the trigger value." }, "onTriggerValueChange": { "type": "((details: TriggerValueChangeDetails) => void) | undefined", "description": "Function called when the trigger value changes." }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" } } }, "presence": { "api": { "skip": { "type": "boolean", "description": "Whether the animation should be skipped." }, "present": { "type": "boolean", "description": "Whether the node is present in the DOM." }, "setNode": { "type": "(node: HTMLElement | null) => void", "description": "Function to set the node (as early as possible)" }, "unmount": { "type": "VoidFunction", "description": "Function to programmatically unmount the node" } }, "context": { "present": { "type": "boolean | undefined", "description": "Whether the node is present (controlled by the user)" }, "onExitComplete": { "type": "VoidFunction | undefined", "description": "Function called when the animation ends in the closed state" }, "onEnterComplete": { "type": "VoidFunction | undefined", "description": "Function called when the animation ends in the open state" }, "immediate": { "type": "boolean | undefined", "description": "Whether to synchronize the present change immediately or defer it to the next frame" } } }, "progress": { "api": { "value": { "type": "number | null", "description": "The current value of the progress bar." }, "valueAsString": { "type": "string", "description": "The current value of the progress bar as a string." }, "setValue": { "type": "(value: number | null) => void", "description": "Sets the current value of the progress bar." }, "setToMax": { "type": "VoidFunction", "description": "Sets the current value of the progress bar to the max value." }, "setToMin": { "type": "VoidFunction", "description": "Sets the current value of the progress bar to the min value." }, "percent": { "type": "number", "description": "The percentage of the progress bar's value." }, "percentAsString": { "type": "string", "description": "The percentage of the progress bar's value as a string." }, "min": { "type": "number", "description": "The minimum allowed value of the progress bar." }, "max": { "type": "number", "description": "The maximum allowed value of the progress bar." }, "indeterminate": { "type": "boolean", "description": "Whether the progress bar is indeterminate." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the progress bar. Useful for composition." }, "value": { "type": "number | null | undefined", "description": "The controlled value of the progress bar." }, "defaultValue": { "type": "number | null | undefined", "description": "The initial value of the progress bar when rendered.\nUse when you don't need to control the value of the progress bar.", "defaultValue": "50" }, "min": { "type": "number | undefined", "description": "The minimum allowed value of the progress bar.", "defaultValue": "0" }, "max": { "type": "number | undefined", "description": "The maximum allowed value of the progress bar.", "defaultValue": "100" }, "translations": { "type": "IntlTranslations | undefined", "description": "The localized messages to use." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Callback fired when the value changes." }, "formatOptions": { "type": "Intl.NumberFormatOptions | undefined", "description": "The options to use for formatting the value.", "defaultValue": "{ style: \"percent\" }" }, "locale": { "type": "string | undefined", "description": "The locale to use for formatting the value.", "defaultValue": "\"en-US\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the element.", "defaultValue": "\"horizontal\"" } } }, "qr-code": { "api": { "value": { "type": "string", "description": "The value to encode." }, "setValue": { "type": "(value: string) => void", "description": "Set the value to encode." }, "getDataUrl": { "type": "(type: DataUrlType, quality?: number) => Promise", "description": "Returns the data URL of the qr code. Includes the overlay when present." } }, "context": { "value": { "type": "string | undefined", "description": "The controlled value to encode." }, "defaultValue": { "type": "string | undefined", "description": "The initial value to encode when rendered.\nUse when you don't need to control the value of the qr code." }, "ids": { "type": "ElementIds | undefined", "description": "The element ids." }, "encoding": { "type": "QrCodeGenerateOptions | undefined", "description": "The qr code encoding options." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Callback fired when the value changes." }, "pixelSize": { "type": "number | undefined", "description": "The pixel size of the qr code." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "radio-group": { "api": { "value": { "type": "string | null", "description": "The current value of the radio group" }, "setValue": { "type": "(value: string) => void", "description": "Function to set the value of the radio group" }, "clearValue": { "type": "VoidFunction", "description": "Function to clear the value of the radio group" }, "focus": { "type": "VoidFunction", "description": "Function to focus the radio group" }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state details of a radio input" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the radio. Useful for composition." }, "value": { "type": "string | null | undefined", "description": "The controlled value of the radio group" }, "defaultValue": { "type": "string | null | undefined", "description": "The initial value of the checked radio when rendered.\nUse when you don't need to control the value of the radio group." }, "name": { "type": "string | undefined", "description": "The name of the input fields in the radio\n(Useful for form submission)." }, "form": { "type": "string | undefined", "description": "The associate form of the underlying input." }, "disabled": { "type": "boolean | undefined", "description": "If `true`, the radio group will be disabled" }, "invalid": { "type": "boolean | undefined", "description": "If `true`, the radio group is marked as invalid." }, "required": { "type": "boolean | undefined", "description": "If `true`, the radio group is marked as required." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the radio group is read-only" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function called once a radio is checked" }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "Orientation of the radio group" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "rating-group": { "api": { "setValue": { "type": "(value: number) => void", "description": "Sets the value of the rating group" }, "clearValue": { "type": "VoidFunction", "description": "Clears the value of the rating group" }, "hovering": { "type": "boolean", "description": "Whether the rating group is being hovered" }, "value": { "type": "number", "description": "The current value of the rating group" }, "hoveredValue": { "type": "number", "description": "The value of the currently hovered rating" }, "count": { "type": "number", "description": "The total number of ratings" }, "items": { "type": "number[]", "description": "The array of rating values. Returns an array of numbers from 1 to the max value." }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a rating item" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the rating. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "count": { "type": "number | undefined", "description": "The total number of ratings.", "defaultValue": "5" }, "name": { "type": "string | undefined", "description": "The name attribute of the rating element (used in forms)." }, "form": { "type": "string | undefined", "description": "The associate form of the underlying input element." }, "value": { "type": "number | undefined", "description": "The controlled value of the rating" }, "defaultValue": { "type": "number | undefined", "description": "The initial value of the rating when rendered.\nUse when you don't need to control the value of the rating." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the rating is readonly." }, "disabled": { "type": "boolean | undefined", "description": "Whether the rating is disabled." }, "required": { "type": "boolean | undefined", "description": "Whether the rating is required." }, "allowHalf": { "type": "boolean | undefined", "description": "Whether to allow half stars." }, "autoFocus": { "type": "boolean | undefined", "description": "Whether to autofocus the rating." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function to be called when the rating value changes." }, "onHoverChange": { "type": "((details: HoverChangeDetails) => void) | undefined", "description": "Function to be called when the rating value is hovered." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "scroll-area": { "api": { "isAtTop": { "type": "boolean", "description": "Whether the scroll area is at the top" }, "isAtBottom": { "type": "boolean", "description": "Whether the scroll area is at the bottom" }, "isAtLeft": { "type": "boolean", "description": "Whether the scroll area is at the left" }, "isAtRight": { "type": "boolean", "description": "Whether the scroll area is at the right" }, "hasOverflowX": { "type": "boolean", "description": "Whether the scroll area has horizontal overflow" }, "hasOverflowY": { "type": "boolean", "description": "Whether the scroll area has vertical overflow" }, "getScrollProgress": { "type": "() => Point", "description": "Get the scroll progress as values between 0 and 1" }, "scrollToEdge": { "type": "(details: ScrollToEdgeDetails) => void", "description": "Scroll to the edge of the scroll area" }, "scrollTo": { "type": "(details: ScrollToDetails) => void", "description": "Scroll to specific coordinates" }, "getScrollbarState": { "type": "(props: ScrollbarProps) => ScrollbarState", "description": "Returns the state of the scrollbar" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the scroll area elements" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "select": { "api": { "focused": { "type": "boolean", "description": "Whether the select is focused" }, "open": { "type": "boolean", "description": "Whether the select is open" }, "empty": { "type": "boolean", "description": "Whether the select value is empty" }, "highlightedValue": { "type": "string | null", "description": "The value of the highlighted item" }, "highlightedItem": { "type": "V | null", "description": "The highlighted item" }, "setHighlightValue": { "type": "(value: string) => void", "description": "Function to highlight a value" }, "clearHighlightValue": { "type": "VoidFunction", "description": "Function to clear the highlighted value" }, "selectedItems": { "type": "V[]", "description": "The selected items" }, "hasSelectedItems": { "type": "boolean", "description": "Whether there's a selected option" }, "value": { "type": "string[]", "description": "The selected item keys" }, "valueAsString": { "type": "string", "description": "The string representation of the selected items" }, "selectValue": { "type": "(value: string) => void", "description": "Function to select a value" }, "selectAll": { "type": "VoidFunction", "description": "Function to select all values" }, "setValue": { "type": "(value: string[]) => void", "description": "Function to set the value of the select" }, "clearValue": { "type": "(value?: string) => void", "description": "Function to clear the value of the select.\nIf a value is provided, it will only clear that value, otherwise, it will clear all values." }, "focus": { "type": "VoidFunction", "description": "Function to focus on the select input" }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a select item" }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open or close the select" }, "collection": { "type": "ListCollection", "description": "Function to toggle the select" }, "reposition": { "type": "(options?: Partial) => void", "description": "Function to set the positioning options of the select" }, "multiple": { "type": "boolean", "description": "Whether the select allows multiple selections" }, "disabled": { "type": "boolean", "description": "Whether the select is disabled" } }, "context": { "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "collection": { "type": "ListCollection", "description": "The item collection" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the select. Useful for composition." }, "name": { "type": "string | undefined", "description": "The `name` attribute of the underlying select." }, "form": { "type": "string | undefined", "description": "The associate form of the underlying select." }, "autoComplete": { "type": "string | undefined", "description": "The autocomplete attribute for the hidden select. Enables browser autofill (e.g. \"address-level1\" for state)." }, "disabled": { "type": "boolean | undefined", "description": "Whether the select is disabled" }, "invalid": { "type": "boolean | undefined", "description": "Whether the select is invalid" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the select is read-only" }, "required": { "type": "boolean | undefined", "description": "Whether the select is required" }, "closeOnSelect": { "type": "boolean | undefined", "description": "Whether the select should close after an item is selected", "defaultValue": "true" }, "onSelect": { "type": "((details: SelectionDetails) => void) | undefined", "description": "Function called when an item is selected" }, "onHighlightChange": { "type": "((details: HighlightChangeDetails) => void) | undefined", "description": "The callback fired when the highlighted item changes." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "The callback fired when the selected item changes." }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the popup is opened" }, "positioning": { "type": "PositioningOptions | undefined", "description": "The positioning options of the menu." }, "value": { "type": "string[] | undefined", "description": "The controlled keys of the selected items" }, "defaultValue": { "type": "string[] | undefined", "description": "The initial default value of the select when rendered.\nUse when you don't need to control the value of the select." }, "highlightedValue": { "type": "string | null | undefined", "description": "The controlled key of the highlighted item" }, "defaultHighlightedValue": { "type": "string | null | undefined", "description": "The initial value of the highlighted item when opened.\nUse when you don't need to control the highlighted value of the select." }, "loopFocus": { "type": "boolean | undefined", "description": "Whether to loop the keyboard navigation through the options", "defaultValue": "false" }, "multiple": { "type": "boolean | undefined", "description": "Whether to allow multiple selection" }, "open": { "type": "boolean | undefined", "description": "Whether the select menu is open" }, "defaultOpen": { "type": "boolean | undefined", "description": "Whether the select's open state is controlled by the user" }, "scrollToIndexFn": { "type": "((details: ScrollToIndexDetails) => void) | undefined", "description": "Function to scroll to a specific index" }, "composite": { "type": "boolean | undefined", "description": "Whether the select is a composed with other composite widgets like tabs or combobox", "defaultValue": "true" }, "deselectable": { "type": "boolean | undefined", "description": "Whether the value can be cleared by clicking the selected item.\n\n**Note:** this is only applicable for single selection" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "signature-pad": { "api": { "empty": { "type": "boolean", "description": "Whether the signature pad is empty." }, "drawing": { "type": "boolean", "description": "Whether the user is currently drawing." }, "currentPath": { "type": "string | null", "description": "The current path being drawn." }, "paths": { "type": "string[]", "description": "The paths of the signature pad." }, "getDataUrl": { "type": "(type: DataUrlType, quality?: number) => Promise", "description": "Returns the data URL of the signature pad." }, "clear": { "type": "VoidFunction", "description": "Clears the signature pad." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the signature pad elements. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "The translations of the signature pad. Useful for internationalization." }, "onDraw": { "type": "((details: DrawDetails) => void) | undefined", "description": "Callback when the signature pad is drawing or the committed paths change.\n`paths` contains only committed strokes; use `currentPath` for the in-progress stroke." }, "onDrawEnd": { "type": "((details: DrawEndDetails) => void) | undefined", "description": "Callback when the signature pad is done drawing." }, "drawing": { "type": "DrawingOptions | undefined", "description": "The drawing options.", "defaultValue": "'{ size: 2, simulatePressure: true }'" }, "disabled": { "type": "boolean | undefined", "description": "Whether the signature pad is disabled." }, "required": { "type": "boolean | undefined", "description": "Whether the signature pad is required." }, "readOnly": { "type": "boolean | undefined", "description": "Whether the signature pad is read-only." }, "name": { "type": "string | undefined", "description": "The name of the signature pad. Useful for form submission." }, "defaultPaths": { "type": "string[] | undefined", "description": "The default paths of the signature pad.\nUse when you don't need to control the paths of the signature pad." }, "paths": { "type": "string[] | undefined", "description": "The controlled paths of the signature pad." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "slider": { "api": { "value": { "type": "number[]", "description": "The value of the slider." }, "dragging": { "type": "boolean", "description": "Whether the slider is being dragged." }, "focused": { "type": "boolean", "description": "Whether the slider is focused." }, "setValue": { "type": "(value: number[]) => void", "description": "Function to set the value of the slider." }, "getThumbValue": { "type": "(index: number) => number", "description": "Returns the value of the thumb at the given index." }, "setThumbValue": { "type": "(index: number, value: number) => void", "description": "Sets the value of the thumb at the given index." }, "getValuePercent": { "type": "(value: number) => number", "description": "Returns the percent of the thumb at the given index." }, "getPercentValue": { "type": "(percent: number) => number", "description": "Returns the value of the thumb at the given percent." }, "getThumbPercent": { "type": "(index: number) => number", "description": "Returns the percent of the thumb at the given index." }, "setThumbPercent": { "type": "(index: number, percent: number) => void", "description": "Sets the percent of the thumb at the given index." }, "getThumbMin": { "type": "(index: number) => number", "description": "Returns the min value of the thumb at the given index." }, "getThumbMax": { "type": "(index: number) => number", "description": "Returns the max value of the thumb at the given index." }, "increment": { "type": "(index: number) => void", "description": "Function to increment the value of the slider at the given index." }, "decrement": { "type": "(index: number) => void", "description": "Function to decrement the value of the slider at the given index." }, "focus": { "type": "VoidFunction", "description": "Function to focus the slider. This focuses the first thumb." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the slider. Useful for composition." }, "aria-label": { "type": "string[] | undefined", "description": "The aria-label of each slider thumb. Useful for providing an accessible name to the slider" }, "aria-labelledby": { "type": "string[] | undefined", "description": "The `id` of the elements that labels each slider thumb. Useful for providing an accessible name to the slider" }, "name": { "type": "string | undefined", "description": "The name associated with each slider thumb (when used in a form)" }, "form": { "type": "string | undefined", "description": "The associate form of the underlying input element." }, "value": { "type": "number[] | undefined", "description": "The controlled value of the slider" }, "defaultValue": { "type": "number[] | undefined", "description": "The initial value of the slider when rendered.\nUse when you don't need to control the value of the slider." }, "disabled": { "type": "boolean | undefined", "description": "Whether the slider is disabled" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the slider is read-only" }, "invalid": { "type": "boolean | undefined", "description": "Whether the slider is invalid" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function invoked when the value of the slider changes" }, "onValueChangeEnd": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function invoked when the slider value change is done" }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "Function invoked when the slider's focused index changes" }, "getAriaValueText": { "type": "((details: ValueTextDetails) => string) | undefined", "description": "Function that returns a human readable value for the slider thumb" }, "min": { "type": "number | undefined", "description": "The minimum value of the slider", "defaultValue": "0" }, "max": { "type": "number | undefined", "description": "The maximum value of the slider", "defaultValue": "100" }, "step": { "type": "number | undefined", "description": "The step value of the slider", "defaultValue": "1" }, "largeStep": { "type": "number | undefined", "description": "The step value of the slider when the `Shift` key is held, or the\n`PageUp`/`PageDown` keys are used.", "defaultValue": "10 * step" }, "minStepsBetweenThumbs": { "type": "number | undefined", "description": "The minimum permitted steps between multiple thumbs.\n\n`minStepsBetweenThumbs` * `step` should reflect the gap between the thumbs.\n\n- `step: 1` and `minStepsBetweenThumbs: 10` => gap is `10`\n- `step: 10` and `minStepsBetweenThumbs: 2` => gap is `20`", "defaultValue": "0" }, "orientation": { "type": "\"vertical\" | \"horizontal\" | undefined", "description": "The orientation of the slider", "defaultValue": "\"horizontal\"" }, "origin": { "type": "\"start\" | \"center\" | \"end\" | undefined", "description": "The origin of the slider range. The track is filled from the origin\nto the thumb for single values.\n- \"start\": Useful when the value represents an absolute value\n- \"center\": Useful when the value represents an offset (relative)\n- \"end\": Useful when the value represents an offset from the end", "defaultValue": "\"start\"" }, "thumbAlignment": { "type": "\"contain\" | \"center\" | undefined", "description": "The alignment of the slider thumb relative to the track\n- `center`: the thumb will extend beyond the bounds of the slider track.\n- `contain`: the thumb will be contained within the bounds of the track.", "defaultValue": "\"contain\"" }, "thumbSize": { "type": "{ width: number; height: number } | undefined", "description": "The slider thumbs dimensions" }, "thumbCollisionBehavior": { "type": "\"none\" | \"push\" | \"swap\" | undefined", "description": "Controls how thumbs behave when they collide during pointer interactions.\n- `none` (default): Thumbs cannot move past each other; excess movement is ignored.\n- `push`: Thumbs push each other without restoring their previous positions when dragged back.\n- `swap`: Thumbs swap places when dragged past each other.", "defaultValue": "\"none\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "splitter": { "api": { "dragging": { "type": "boolean", "description": "Whether the splitter is currently being resized." }, "orientation": { "type": "\"horizontal\" | \"vertical\"", "description": "The orientation of the splitter." }, "getSizes": { "type": "() => number[]", "description": "Returns the current sizes of the panels." }, "setSizes": { "type": "(size: PanelSize[]) => void", "description": "Sets the sizes of the panels." }, "getItems": { "type": "() => SplitterItem[]", "description": "Returns the items of the splitter." }, "getPanels": { "type": "() => PanelData[]", "description": "Returns the panels of the splitter." }, "getPanelById": { "type": "(id: PanelId) => PanelData", "description": "Returns the panel with the specified id." }, "getPanelSize": { "type": "(id: PanelId) => number", "description": "Returns the size of the specified panel." }, "isPanelCollapsed": { "type": "(id: PanelId) => boolean", "description": "Returns whether the specified panel is collapsed." }, "isPanelExpanded": { "type": "(id: PanelId) => boolean", "description": "Returns whether the specified panel is expanded." }, "collapsePanel": { "type": "(id: PanelId) => void", "description": "Collapses the specified panel." }, "expandPanel": { "type": "(id: PanelId, minSize?: number) => void", "description": "Expands the specified panel." }, "resizePanel": { "type": "(id: PanelId, unsafePanelSize: number) => void", "description": "Resizes the specified panel." }, "getLayout": { "type": "() => string", "description": "Returns the layout of the splitter." }, "resetSizes": { "type": "VoidFunction", "description": "Resets the splitter to its initial state." }, "getResizeTriggerState": { "type": "(props: ResizeTriggerProps) => ResizeTriggerState", "description": "Returns the state of the resize trigger." } }, "context": { "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the splitter. Can be `horizontal` or `vertical`", "defaultValue": "\"horizontal\"" }, "size": { "type": "PanelSize[] | undefined", "description": "The controlled size data of the panels" }, "defaultSize": { "type": "PanelSize[] | undefined", "description": "The initial size of the panels when rendered.\nUse when you don't need to control the size of the panels." }, "panels": { "type": "PanelData[]", "description": "The size constraints of the panels." }, "onResize": { "type": "((details: ResizeDetails) => void) | undefined", "description": "Function called when the splitter is resized." }, "onResizeStart": { "type": "(() => void) | undefined", "description": "Function called when the splitter resize starts." }, "onResizeEnd": { "type": "((details: ResizeEndDetails) => void) | undefined", "description": "Function called when the splitter resize ends." }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the splitter. Useful for composition." }, "keyboardResizeBy": { "type": "number | null | undefined", "description": "The number of pixels to resize the panel by when the keyboard is used." }, "nonce": { "type": "string | undefined", "description": "The nonce for the injected splitter cursor stylesheet." }, "onCollapse": { "type": "((details: ExpandCollapseDetails) => void) | undefined", "description": "Function called when a panel is collapsed." }, "onExpand": { "type": "((details: ExpandCollapseDetails) => void) | undefined", "description": "Function called when a panel is expanded." }, "registry": { "type": "SplitterRegistry | undefined", "description": "The splitter registry to use for multi-drag support.\nWhen provided, enables dragging at the intersection of multiple splitters." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "steps": { "api": { "value": { "type": "number", "description": "The value of the stepper." }, "percent": { "type": "number", "description": "The percentage of the stepper." }, "count": { "type": "number", "description": "The total number of steps." }, "hasNextStep": { "type": "boolean", "description": "Whether the stepper has a next step." }, "hasPrevStep": { "type": "boolean", "description": "Whether the stepper has a previous step." }, "isCompleted": { "type": "boolean", "description": "Whether the stepper is completed." }, "isStepValid": { "type": "(index: number) => boolean", "description": "Check if a specific step is valid (lazy evaluation)" }, "isStepSkippable": { "type": "(index: number) => boolean", "description": "Check if a specific step can be skipped" }, "setStep": { "type": "(step: number) => void", "description": "Function to set the value of the stepper." }, "goToNextStep": { "type": "VoidFunction", "description": "Function to go to the next step." }, "goToPrevStep": { "type": "VoidFunction", "description": "Function to go to the previous step." }, "resetStep": { "type": "VoidFunction", "description": "Function to go to reset the stepper." }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of the item at the given index." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The custom ids for the stepper elements" }, "step": { "type": "number | undefined", "description": "The controlled value of the stepper" }, "defaultStep": { "type": "number | undefined", "description": "The initial value of the stepper when rendered.\nUse when you don't need to control the value of the stepper." }, "onStepChange": { "type": "((details: StepChangeDetails) => void) | undefined", "description": "Callback to be called when the value changes" }, "onStepComplete": { "type": "VoidFunction | undefined", "description": "Callback to be called when a step is completed" }, "linear": { "type": "boolean | undefined", "description": "If `true`, the stepper requires the user to complete the steps in order" }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the stepper", "defaultValue": "\"horizontal\"" }, "count": { "type": "number | undefined", "description": "The total number of steps" }, "isStepValid": { "type": "((index: number) => boolean) | undefined", "description": "Whether a step is valid. Invalid steps block forward navigation in linear mode.", "defaultValue": "() => true" }, "isStepSkippable": { "type": "((index: number) => boolean) | undefined", "description": "Whether a step can be skipped during navigation.\nSkippable steps are bypassed when using next/prev.", "defaultValue": "() => false" }, "onStepInvalid": { "type": "((details: StepInvalidDetails) => void) | undefined", "description": "Called when navigation is blocked due to an invalid step." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "switch": { "api": { "checked": { "type": "boolean", "description": "Whether the switch is checked" }, "disabled": { "type": "boolean | undefined", "description": "Whether the switch is disabled" }, "focused": { "type": "boolean | undefined", "description": "Whether the switch is focused" }, "setChecked": { "type": "(checked: boolean) => void", "description": "Sets the checked state of the switch." }, "toggleChecked": { "type": "VoidFunction", "description": "Toggles the checked state of the switch." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the switch. Useful for composition." }, "label": { "type": "string | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "disabled": { "type": "boolean | undefined", "description": "Whether the switch is disabled." }, "invalid": { "type": "boolean | undefined", "description": "If `true`, the switch is marked as invalid." }, "required": { "type": "boolean | undefined", "description": "If `true`, the switch input is marked as required," }, "readOnly": { "type": "boolean | undefined", "description": "Whether the switch is read-only" }, "onCheckedChange": { "type": "((details: CheckedChangeDetails) => void) | undefined", "description": "Function to call when the switch is clicked." }, "checked": { "type": "boolean | undefined", "description": "The controlled checked state of the switch" }, "defaultChecked": { "type": "boolean | undefined", "description": "The initial checked state of the switch when rendered.\nUse when you don't need to control the checked state of the switch." }, "name": { "type": "string | undefined", "description": "The name of the input field in a switch\n(Useful for form submission)." }, "form": { "type": "string | undefined", "description": "The id of the form that the switch belongs to" }, "value": { "type": "string | number | undefined", "description": "The value of switch input. Useful for form submission.", "defaultValue": "\"on\"" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "tabs": { "api": { "value": { "type": "string | null", "description": "The current value of the tabs." }, "focusedValue": { "type": "string | null", "description": "The value of the tab that is currently focused." }, "setValue": { "type": "(value: string) => void", "description": "Sets the value of the tabs." }, "clearValue": { "type": "VoidFunction", "description": "Clears the value of the tabs." }, "setIndicatorRect": { "type": "(value: string) => void", "description": "Sets the indicator rect to the tab with the given value" }, "syncTabIndex": { "type": "VoidFunction", "description": "Synchronizes the tab index of the content element.\nUseful when rendering tabs within a select or combobox" }, "focus": { "type": "VoidFunction", "description": "Set focus on the selected tab trigger" }, "selectNext": { "type": "(fromValue?: string) => void", "description": "Selects the next tab" }, "selectPrev": { "type": "(fromValue?: string) => void", "description": "Selects the previous tab" }, "getTriggerState": { "type": "(props: TriggerProps) => TriggerState", "description": "Returns the state of the trigger with the given props" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the tabs. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "loopFocus": { "type": "boolean | undefined", "description": "Whether the keyboard navigation will loop from last tab to first, and vice versa.", "defaultValue": "true" }, "value": { "type": "string | null | undefined", "description": "The controlled selected tab value" }, "defaultValue": { "type": "string | null | undefined", "description": "The initial selected tab value when rendered.\nUse when you don't need to control the selected tab value." }, "orientation": { "type": "\"horizontal\" | \"vertical\" | undefined", "description": "The orientation of the tabs. Can be `horizontal` or `vertical`\n- `horizontal`: only left and right arrow key navigation will work.\n- `vertical`: only up and down arrow key navigation will work.", "defaultValue": "\"horizontal\"" }, "activationMode": { "type": "\"manual\" | \"automatic\" | undefined", "description": "The activation mode of the tabs. Can be `manual` or `automatic`\n- `manual`: Tabs are activated when clicked or press `enter` key.\n- `automatic`: Tabs are activated when receiving focus", "defaultValue": "\"automatic\"" }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Callback to be called when the selected/active tab changes" }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "Callback to be called when the focused tab changes" }, "composite": { "type": "boolean | undefined", "description": "Whether the tab is composite" }, "deselectable": { "type": "boolean | undefined", "description": "Whether the active tab can be deselected when clicking on it." }, "navigate": { "type": "((details: NavigateDetails) => void) | null | undefined", "description": "Function to navigate to the selected tab when clicking on it.\nUseful if tab triggers are anchor elements." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "tags-input": { "api": { "empty": { "type": "boolean", "description": "Whether the tags are empty" }, "inputValue": { "type": "string", "description": "The value of the tags entry input." }, "value": { "type": "string[]", "description": "The value of the tags as an array of strings." }, "valueAsString": { "type": "string", "description": "The value of the tags as a string." }, "count": { "type": "number", "description": "The number of the tags." }, "atMax": { "type": "boolean", "description": "Whether the tags have reached the max limit." }, "setValue": { "type": "(value: string[]) => void", "description": "Function to set the value of the tags." }, "clearValue": { "type": "(id?: string) => void", "description": "Function to clear the value of the tags." }, "addValue": { "type": "(value: string) => void", "description": "Function to add a tag to the tags." }, "setValueAtIndex": { "type": "(index: number, value: string) => void", "description": "Function to set the value of a tag at the given index." }, "setInputValue": { "type": "(value: string) => void", "description": "Function to set the value of the tags entry input." }, "clearInputValue": { "type": "VoidFunction", "description": "Function to clear the value of the tags entry input." }, "focus": { "type": "VoidFunction", "description": "Function to focus the tags entry input." }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a tag" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the tags input. Useful for composition." }, "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "maxLength": { "type": "number | undefined", "description": "The max length of the input." }, "delimiter": { "type": "string | RegExp | undefined", "description": "The character that serves has:\n- event key to trigger the addition of a new tag\n- character used to split tags when pasting into the input", "defaultValue": "\",\"" }, "autoFocus": { "type": "boolean | undefined", "description": "Whether the input should be auto-focused" }, "disabled": { "type": "boolean | undefined", "description": "Whether the tags input should be disabled" }, "readOnly": { "type": "boolean | undefined", "description": "Whether the tags input should be read-only" }, "invalid": { "type": "boolean | undefined", "description": "Whether the tags input is invalid" }, "required": { "type": "boolean | undefined", "description": "Whether the tags input is required" }, "editable": { "type": "boolean | undefined", "description": "Whether a tag can be edited after creation, by pressing `Enter` or double clicking.", "defaultValue": "true" }, "inputValue": { "type": "string | undefined", "description": "The controlled tag input's value" }, "defaultInputValue": { "type": "string | undefined", "description": "The initial tag input value when rendered.\nUse when you don't need to control the tag input value." }, "value": { "type": "string[] | undefined", "description": "The controlled tag value" }, "defaultValue": { "type": "string[] | undefined", "description": "The initial tag value when rendered.\nUse when you don't need to control the tag value." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Callback fired when the tag values is updated" }, "onInputValueChange": { "type": "((details: InputValueChangeDetails) => void) | undefined", "description": "Callback fired when the input value is updated" }, "onHighlightChange": { "type": "((details: HighlightChangeDetails) => void) | undefined", "description": "Callback fired when a tag is highlighted by pointer or keyboard navigation" }, "onValueInvalid": { "type": "((details: ValidityChangeDetails) => void) | undefined", "description": "Callback fired when the max tag count is reached or the `validateTag` function returns `false`" }, "validate": { "type": "((details: ValidateArgs) => boolean) | undefined", "description": "Returns a boolean that determines whether a tag can be added.\nUseful for preventing duplicates or invalid tag values." }, "allowDuplicates": { "type": "boolean | undefined", "description": "Whether to allow duplicate tags.", "defaultValue": "false" }, "blurBehavior": { "type": "\"clear\" | \"add\" | undefined", "description": "The behavior of the tags input when the input is blurred\n- `\"add\"`: add the input value as a new tag\n- `\"clear\"`: clear the input value" }, "addOnPaste": { "type": "boolean | undefined", "description": "Whether to add a tag when you paste values into the tag input", "defaultValue": "false" }, "max": { "type": "number | undefined", "description": "The max number of tags", "defaultValue": "Infinity" }, "allowOverflow": { "type": "boolean | undefined", "description": "Whether to allow tags to exceed max. In this case,\nwe'll attach `data-invalid` to the root" }, "sanitizeValue": { "type": "((value: string) => string) | undefined", "description": "Function to sanitize the tag value before adding.\nUseful for trimming whitespace, normalizing case, or stripping special characters.", "defaultValue": "(value) => value.trim()" }, "name": { "type": "string | undefined", "description": "The name attribute for the input. Useful for form submissions" }, "form": { "type": "string | undefined", "description": "The associate form of the underlying input element." }, "placeholder": { "type": "string | undefined", "description": "The placeholder text for the input" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "timer": { "api": { "running": { "type": "boolean", "description": "Whether the timer is running." }, "paused": { "type": "boolean", "description": "Whether the timer is paused." }, "time": { "type": "Time", "description": "The formatted timer count value." }, "formattedTime": { "type": "Time", "description": "The formatted time parts of the timer count." }, "start": { "type": "VoidFunction", "description": "Function to start the timer." }, "pause": { "type": "VoidFunction", "description": "Function to pause the timer." }, "resume": { "type": "VoidFunction", "description": "Function to resume the timer." }, "reset": { "type": "VoidFunction", "description": "Function to reset the timer." }, "restart": { "type": "VoidFunction", "description": "Function to restart the timer." }, "progressPercent": { "type": "number", "description": "The progress percentage of the timer." } }, "context": { "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the timer parts" }, "countdown": { "type": "boolean | undefined", "description": "Whether the timer should countdown, decrementing the timer on each tick." }, "startMs": { "type": "number | undefined", "description": "The total duration of the timer in milliseconds." }, "targetMs": { "type": "number | undefined", "description": "The minimum count of the timer in milliseconds." }, "autoStart": { "type": "boolean | undefined", "description": "Whether the timer should start automatically" }, "interval": { "type": "number | undefined", "description": "The interval in milliseconds to update the timer count.", "defaultValue": "1000" }, "onTick": { "type": "((details: TickDetails) => void) | undefined", "description": "Function invoked when the timer ticks" }, "onComplete": { "type": "(() => void) | undefined", "description": "Function invoked when the timer is completed" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "toast": { "api": { "getCount": { "type": "() => number", "description": "The total number of toasts" }, "getToasts": { "type": "() => ToastProps[]", "description": "The toasts" }, "subscribe": { "type": "(callback: (toasts: Options[]) => void) => VoidFunction", "description": "Subscribe to the toast group" } }, "context": { "attrs": { "type": "Required", "description": "The attributes of the toast store" }, "subscribe": { "type": "(subscriber: (...args: any[]) => void) => VoidFunction", "description": "Subscribe to the toast store" }, "create": { "type": "(data: Options) => string", "description": "Create a new toast with the given options" }, "update": { "type": "(id: string, data: Partial>) => string", "description": "Update an existing toast with new properties" }, "remove": { "type": "(id?: string) => void", "description": "Remove a toast by its ID" }, "dismiss": { "type": "(id?: string) => void", "description": "Dismiss a toast by its ID. If no ID is provided, dismisses all toasts" }, "error": { "type": "(data: Options) => void", "description": "Create an error toast with the given options" }, "success": { "type": "(data: Options) => void", "description": "Create a success toast with the given options" }, "info": { "type": "(data: Options) => void", "description": "Create an info toast with the given options" }, "warning": { "type": "(data: Options) => void", "description": "Create a warning toast with the given options" }, "loading": { "type": "(data: Options) => void", "description": "Create a loading toast with the given options" }, "getVisibleToasts": { "type": "() => Partial>[]", "description": "Get all currently visible toasts" }, "getCount": { "type": "() => number", "description": "Get the total number of toasts" }, "promise": { "type": "(\n promise: Promise | (() => Promise),\n options: PromiseOptions,\n shared?: Omit, \"type\">,\n ) => { id: string | undefined; unwrap: () => Promise } | undefined", "description": "Create a toast that tracks a promise's state" }, "pause": { "type": "(id?: string) => void", "description": "Pause a toast's auto-dismiss timer. If no ID is provided, pauses all toasts" }, "resume": { "type": "(id?: string) => void", "description": "Resume a toast's auto-dismiss timer. If no ID is provided, resumes all toasts" }, "isVisible": { "type": "(id: string) => boolean", "description": "Check if a toast with the given ID is currently visible" }, "isDismissed": { "type": "(id: string) => boolean", "description": "Check if a toast with the given ID has been dismissed" }, "expand": { "type": "VoidFunction", "description": "Expand all toasts to show their full content (overlap mode)" }, "collapse": { "type": "VoidFunction", "description": "Collapse all toasts to their compact state (overlap mode)" } } }, "toc": { "api": { "activeIds": { "type": "string[]", "description": "All currently active (visible) heading ids" }, "activeItems": { "type": "TocItem[]", "description": "The active (visible) TOC items" }, "items": { "type": "TocItem[]", "description": "The resolved items list" }, "setActiveIds": { "type": "(value: string[]) => void", "description": "Manually set the active heading ids" }, "scrollTo": { "type": "(value: string, details?: ScrollToDetails | undefined) => void", "description": "Scrolls to the heading with the given id." }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of a TOC item" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the TOC. Useful for composition." }, "items": { "type": "TocItem[]", "description": "The TOC items with `value` (slug/id) and `depth` (heading level)." }, "rootMargin": { "type": "string | undefined", "description": "The root margin for the IntersectionObserver.\nControls the effective viewport area for determining active headings.", "defaultValue": "\"-20px 0px -40% 0px\"" }, "threshold": { "type": "number | number[] | undefined", "description": "The IntersectionObserver threshold. A value of `0` means the heading is\nactive as soon as even one pixel is visible within the root margin area.", "defaultValue": "0" }, "scrollEl": { "type": "(() => HTMLElement | null) | undefined", "description": "Function that returns the scroll container element to observe within.\nDefaults to the document/viewport." }, "autoScroll": { "type": "boolean | undefined", "description": "Whether to auto-scroll the TOC container so the first active item\nis visible when active headings change.", "defaultValue": "true" }, "scrollBehavior": { "type": "ScrollBehavior | undefined", "description": "The default scroll behavior used when auto-scrolling the TOC container\nand when scrolling to a heading (via link click or `api.scrollTo`).\nCan be overridden per-call by passing `behavior` to `api.scrollTo`.", "defaultValue": "\"smooth\"" }, "onActiveChange": { "type": "((details: ActiveChangeDetails) => void) | undefined", "description": "Callback when the active (visible) headings change." }, "activeIds": { "type": "string[] | undefined", "description": "The controlled active heading ids." }, "defaultActiveIds": { "type": "string[] | undefined", "description": "The default active heading ids when rendered.\nUse when you don't need to control the active headings." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "toggle": { "api": { "pressed": { "type": "boolean", "description": "Whether the toggle is pressed." }, "disabled": { "type": "boolean", "description": "Whether the toggle is disabled." }, "setPressed": { "type": "(pressed: boolean) => void", "description": "Sets the pressed state of the toggle." }, "getRootProps": { "type": "() => T[\"element\"]", "description": "Props for the root `button` element." }, "getIndicatorProps": { "type": "() => T[\"element\"]", "description": "Props for the optional visual indicator (e.g. icon) element." } }, "context": { "disabled": { "type": "boolean | undefined", "description": "Whether the toggle is disabled." }, "defaultPressed": { "type": "boolean | undefined", "description": "The default pressed state of the toggle." }, "pressed": { "type": "boolean | undefined", "description": "The pressed state of the toggle." }, "onPressedChange": { "type": "((pressed: boolean) => void) | undefined", "description": "Event handler called when the pressed state of the toggle changes." } } }, "toggle-group": { "api": { "value": { "type": "string[]", "description": "The value of the toggle group." }, "setValue": { "type": "(value: string[]) => void", "description": "Sets the value of the toggle group." }, "getItemState": { "type": "(props: ItemProps) => ItemState", "description": "Returns the state of the toggle item." } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the toggle. Useful for composition." }, "disabled": { "type": "boolean | undefined", "description": "Whether the toggle is disabled." }, "value": { "type": "string[] | undefined", "description": "The controlled selected value of the toggle group." }, "defaultValue": { "type": "string[] | undefined", "description": "The initial selected value of the toggle group when rendered.\nUse when you don't need to control the selected value of the toggle group." }, "onValueChange": { "type": "((details: ValueChangeDetails) => void) | undefined", "description": "Function to call when the toggle is clicked." }, "loopFocus": { "type": "boolean | undefined", "description": "Whether to loop focus inside the toggle group.", "defaultValue": "true" }, "rovingFocus": { "type": "boolean | undefined", "description": "Whether to use roving tab index to manage focus.", "defaultValue": "true" }, "orientation": { "type": "Orientation | undefined", "description": "The orientation of the toggle group.", "defaultValue": "\"horizontal\"" }, "multiple": { "type": "boolean | undefined", "description": "Whether to allow multiple toggles to be selected." }, "deselectable": { "type": "boolean | undefined", "description": "Whether the toggle group allows empty selection.\n**Note:** This is ignored if `multiple` is `true`.", "defaultValue": "true" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "tooltip": { "api": { "open": { "type": "boolean", "description": "Whether the tooltip is open." }, "setOpen": { "type": "(open: boolean) => void", "description": "Function to open the tooltip." }, "triggerValue": { "type": "string | null", "description": "The trigger value" }, "setTriggerValue": { "type": "(value: string | null) => void", "description": "Function to set the trigger value" }, "reposition": { "type": "(options?: Partial) => void", "description": "Function to reposition the popover" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the tooltip. Useful for composition." }, "openDelay": { "type": "number | undefined", "description": "The open delay of the tooltip.", "defaultValue": "400" }, "closeDelay": { "type": "number | undefined", "description": "The close delay of the tooltip.", "defaultValue": "150" }, "closeOnPointerDown": { "type": "boolean | undefined", "description": "Whether to close the tooltip on pointerdown.", "defaultValue": "true" }, "closeOnEscape": { "type": "boolean | undefined", "description": "Whether to close the tooltip when the Escape key is pressed.", "defaultValue": "true" }, "closeOnScroll": { "type": "boolean | undefined", "description": "Whether the tooltip should close on scroll", "defaultValue": "true" }, "closeOnClick": { "type": "boolean | undefined", "description": "Whether the tooltip should close on click", "defaultValue": "true" }, "interactive": { "type": "boolean | undefined", "description": "Whether the tooltip's content is interactive.\nIn this mode, the tooltip will remain open when user hovers over the content.", "defaultValue": "false" }, "onOpenChange": { "type": "((details: OpenChangeDetails) => void) | undefined", "description": "Function called when the tooltip is opened." }, "aria-label": { "type": "string | undefined", "description": "Custom label for the tooltip." }, "positioning": { "type": "PositioningOptions | undefined", "description": "The user provided options used to position the popover content" }, "disabled": { "type": "boolean | undefined", "description": "Whether the tooltip is disabled" }, "open": { "type": "boolean | undefined", "description": "The controlled open state of the tooltip" }, "defaultOpen": { "type": "boolean | undefined", "description": "The initial open state of the tooltip when rendered.\nUse when you don't need to control the open state of the tooltip." }, "triggerValue": { "type": "string | null | undefined", "description": "The controlled trigger value" }, "defaultTriggerValue": { "type": "string | null | undefined", "description": "The initial trigger value when rendered.\nUse when you don't need to control the trigger value." }, "onTriggerValueChange": { "type": "((details: TriggerValueChangeDetails) => void) | undefined", "description": "Function called when the trigger value changes." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } }, "tour": { "api": { "open": { "type": "boolean", "description": "Whether the tour is open" }, "totalSteps": { "type": "number", "description": "The total number of steps" }, "stepIndex": { "type": "number", "description": "The index of the current step" }, "step": { "type": "StepDetails | null", "description": "The current step details" }, "hasNextStep": { "type": "boolean", "description": "Whether there is a next step" }, "hasPrevStep": { "type": "boolean", "description": "Whether there is a previous step" }, "firstStep": { "type": "boolean", "description": "Whether the current step is the first step" }, "lastStep": { "type": "boolean", "description": "Whether the current step is the last step" }, "addStep": { "type": "(step: StepDetails) => void", "description": "Add a new step to the tour" }, "removeStep": { "type": "(id: string) => void", "description": "Remove a step from the tour" }, "updateStep": { "type": "(id: string, stepOverrides: Partial) => void", "description": "Update a step in the tour with partial details" }, "setSteps": { "type": "(steps: StepDetails[]) => void", "description": "Set the steps of the tour" }, "setStep": { "type": "(id: string) => void", "description": "Set the current step of the tour" }, "start": { "type": "(id?: string) => void", "description": "Start the tour at a specific step (or the first step if not provided)" }, "isValidStep": { "type": "(id: string) => boolean", "description": "Check if a step is valid" }, "isCurrentStep": { "type": "(id: string) => boolean", "description": "Check if a step is visible" }, "next": { "type": "VoidFunction", "description": "Move to the next step" }, "prev": { "type": "VoidFunction", "description": "Move to the previous step" }, "getProgressText": { "type": "() => string", "description": "Returns the progress text" }, "getProgressPercent": { "type": "() => number", "description": "Returns the progress percent" } }, "context": { "ids": { "type": "ElementIds | undefined", "description": "The ids of the elements in the tour. Useful for composition." }, "steps": { "type": "StepDetails[] | undefined", "description": "The steps of the tour" }, "stepId": { "type": "string | null | undefined", "description": "The id of the currently highlighted step" }, "onStepChange": { "type": "((details: StepChangeDetails) => void) | undefined", "description": "Callback when the highlighted step changes" }, "onStepsChange": { "type": "((details: StepsChangeDetails) => void) | undefined", "description": "Callback when the steps change" }, "onStatusChange": { "type": "((details: StatusChangeDetails) => void) | undefined", "description": "Callback when the tour is opened or closed" }, "closeOnInteractOutside": { "type": "boolean | undefined", "description": "Whether to close the tour when the user clicks outside the tour", "defaultValue": "true" }, "closeOnEscape": { "type": "boolean | undefined", "description": "Whether to close the tour when the user presses the escape key", "defaultValue": "true" }, "keyboardNavigation": { "type": "boolean | undefined", "description": "Whether to allow keyboard navigation (right/left arrow keys to navigate between steps)", "defaultValue": "true" }, "preventInteraction": { "type": "boolean | undefined", "description": "Prevents interaction with the rest of the page while the tour is open", "defaultValue": "false" }, "spotlightOffset": { "type": "Point | undefined", "description": "The offsets to apply to the spotlight", "defaultValue": "\"{ x: 10, y: 10 }\"" }, "spotlightRadius": { "type": "number | undefined", "description": "The radius of the spotlight clip path", "defaultValue": "4" }, "translations": { "type": "IntlTranslations | undefined", "description": "The translations for the tour" }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." }, "onPointerDownOutside": { "type": "((event: PointerDownOutsideEvent) => void) | undefined", "description": "Function called when the pointer is pressed down outside the component" }, "onFocusOutside": { "type": "((event: FocusOutsideEvent) => void) | undefined", "description": "Function called when the focus is moved outside the component" }, "onInteractOutside": { "type": "((event: InteractOutsideEvent) => void) | undefined", "description": "Function called when an interaction happens outside the component" } } }, "tree-view": { "api": { "collection": { "type": "TreeCollection", "description": "The tree collection data" }, "expandedValue": { "type": "string[]", "description": "The value of the expanded nodes." }, "setExpandedValue": { "type": "(value: string[]) => void", "description": "Sets the expanded value" }, "selectedValue": { "type": "string[]", "description": "The value of the selected nodes." }, "setSelectedValue": { "type": "(value: string[]) => void", "description": "Sets the selected value" }, "checkedValue": { "type": "string[]", "description": "The value of the checked nodes" }, "toggleChecked": { "type": "(value: string, isBranch: boolean) => void", "description": "Toggles the checked value of a node" }, "setChecked": { "type": "(value: string[]) => void", "description": "Sets the checked value of a node" }, "clearChecked": { "type": "VoidFunction", "description": "Clears the checked value of a node" }, "getCheckedMap": { "type": "() => CheckedValueMap", "description": "Returns the checked details of branch and leaf nodes" }, "getVisibleNodes": { "type": "() => VisibleNode[]", "description": "Returns the visible nodes as a flat array of nodes and their index path.\nUseful for rendering virtualized tree views." }, "expand": { "type": "(value?: string[]) => void", "description": "Function to expand nodes.\nIf no value is provided, all nodes will be expanded" }, "collapse": { "type": "(value?: string[]) => void", "description": "Function to collapse nodes\nIf no value is provided, all nodes will be collapsed" }, "select": { "type": "(value?: string[]) => void", "description": "Function to select nodes\nIf no value is provided, all nodes will be selected" }, "deselect": { "type": "(value?: string[]) => void", "description": "Function to deselect nodes\nIf no value is provided, all nodes will be deselected" }, "focus": { "type": "(value: string) => void", "description": "Function to focus a node by value" }, "selectParent": { "type": "(value: string) => void", "description": "Function to select the parent node of the focused node" }, "expandParent": { "type": "(value: string) => void", "description": "Function to expand the parent node of the focused node" }, "startRenaming": { "type": "(value: string) => void", "description": "Function to start renaming a node by value" }, "submitRenaming": { "type": "(value: string, label: string) => void", "description": "Function to submit the rename and update the node label" }, "cancelRenaming": { "type": "() => void", "description": "Function to cancel renaming without changes" } }, "context": { "translations": { "type": "IntlTranslations | undefined", "description": "Specifies the localized strings that identifies the accessibility elements and their states" }, "collection": { "type": "TreeCollection | undefined", "description": "The tree collection data" }, "ids": { "type": "ElementIds | undefined", "description": "The ids of the tree elements. Useful for composition." }, "expandedValue": { "type": "string[] | undefined", "description": "The controlled expanded node ids" }, "defaultExpandedValue": { "type": "string[] | undefined", "description": "The initial expanded node ids when rendered.\nUse when you don't need to control the expanded node value." }, "selectedValue": { "type": "string[] | undefined", "description": "The controlled selected node value" }, "defaultSelectedValue": { "type": "string[] | undefined", "description": "The initial selected node value when rendered.\nUse when you don't need to control the selected node value." }, "defaultCheckedValue": { "type": "string[] | undefined", "description": "The initial checked node value when rendered.\nUse when you don't need to control the checked node value." }, "checkedValue": { "type": "string[] | undefined", "description": "The controlled checked node value" }, "defaultFocusedValue": { "type": "string | null | undefined", "description": "The initial focused node value when rendered.\nUse when you don't need to control the focused node value." }, "focusedValue": { "type": "string | null | undefined", "description": "The value of the focused node" }, "selectionMode": { "type": "\"single\" | \"multiple\" | undefined", "description": "Whether the tree supports multiple selection\n- \"single\": only one node can be selected\n- \"multiple\": multiple nodes can be selected", "defaultValue": "\"single\"" }, "onExpandedChange": { "type": "((details: ExpandedChangeDetails) => void) | undefined", "description": "Called when the tree is opened or closed" }, "onSelectionChange": { "type": "((details: SelectionChangeDetails) => void) | undefined", "description": "Called when the selection changes" }, "onFocusChange": { "type": "((details: FocusChangeDetails) => void) | undefined", "description": "Called when the focused node changes" }, "onCheckedChange": { "type": "((details: CheckedChangeDetails) => void) | undefined", "description": "Called when the checked value changes" }, "canRename": { "type": "((node: T, indexPath: IndexPath) => boolean) | undefined", "description": "Function to determine if a node can be renamed" }, "onRenameStart": { "type": "((details: RenameStartDetails) => void) | undefined", "description": "Called when a node starts being renamed" }, "onBeforeRename": { "type": "((details: RenameCompleteDetails) => boolean) | undefined", "description": "Called before a rename is completed. Return false to prevent the rename." }, "onRenameComplete": { "type": "((details: RenameCompleteDetails) => void) | undefined", "description": "Called when a node label rename is completed" }, "onLoadChildrenComplete": { "type": "((details: LoadChildrenCompleteDetails) => void) | undefined", "description": "Called when a node finishes loading children" }, "onLoadChildrenError": { "type": "((details: LoadChildrenErrorDetails) => void) | undefined", "description": "Called when loading children fails for one or more nodes" }, "expandOnClick": { "type": "boolean | undefined", "description": "Whether clicking on a branch should open it or not", "defaultValue": "true" }, "typeahead": { "type": "boolean | undefined", "description": "Whether the tree supports typeahead search", "defaultValue": "true" }, "loadChildren": { "type": "((details: LoadChildrenDetails) => Promise) | undefined", "description": "Function to load children for a node asynchronously.\nWhen provided, branches will wait for this promise to resolve before expanding." }, "scrollToIndexFn": { "type": "((details: ScrollToIndexDetails) => void) | undefined", "description": "Function to scroll to a specific index.\nUseful for virtualized tree views." }, "dir": { "type": "\"ltr\" | \"rtl\" | undefined", "description": "The document's text/writing direction.", "defaultValue": "\"ltr\"" }, "id": { "type": "string", "description": "The unique identifier of the machine." }, "getRootNode": { "type": "(() => ShadowRoot | Document | Node) | undefined", "description": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron." } } } }