Skip to content

The open alternative to Salesforce, designed for AI.

34.4 KB
Raw Blame
{/*
 * _____                    _
 *|_   _|_      _____ _ __ | |_ _   _
 *  | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
 *  | |  \ V  V /  __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
 *  |_|   \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
 *                              |___/
 *
 * This file is generated from the documentation data in packages/twenty-ui/generated.
 * To update it, edit the component prop types or design tokens in twenty-ui and run:
 *   npx nx generate:ui twenty-docs
 */}

### Autocomplete.Root

<ParamField body="Root.actionsRef" type="RefObject&lt;AutocompleteRootActions | null&gt;">
  A ref to imperative actions.
  - `unmount`: Ends the closing phase of the autocomplete after an externally controlled closing animation finishes.
  Call `preventUnmountOnClose()` in `onOpenChange` first, otherwise the autocomplete completes closing on its own.
  Whether it leaves the DOM is decided by `keepMounted` on the portal.
  - `close`: Closes the autocomplete imperatively when called.
</ParamField>

<ParamField body="Root.autoHighlight" type="boolean | &quot;always&quot;" default="false">
  Whether the first matching item is highlighted automatically.
  - `true`: highlight after the user types and keep the highlight while the query changes.
  - `'always'`: always highlight the first item.
</ParamField>

<ParamField body="Root.defaultOpen" type="boolean" default="false">
  Whether the popup is initially open.

  To render a controlled popup, use the `open` prop instead.
</ParamField>

<ParamField body="Root.defaultValue" type="string | number | readonly string[]">
  The uncontrolled input value of the autocomplete when it's initially rendered.

  To render a controlled autocomplete, use the `value` prop instead.
</ParamField>

<ParamField body="Root.disabled" type="boolean" default="false">
  Whether the component should ignore user interaction.
</ParamField>

<ParamField body="Root.filter" type="AutocompleteRootProps&lt;TItem&gt;[&quot;filter&quot;]">
  Filter function used to match items against the input query.
</ParamField>

<ParamField body="Root.filteredItems" type="readonly TItem[] | readonly { items: readonly TItem[] }[]">
  Filtered items to display in the list.
  When provided, the list uses these items instead of filtering the `items` prop internally.
  When `items` is also provided, this array must preserve its flat or grouped structure.
  Nullish entries are not supported, as in `items`.
  Use when you want to control filtering logic externally with the `useFilter()` hook.
</ParamField>

<ParamField body="Root.form" type="string">
  Identifies the form that owns the internal input.
  Useful when the autocomplete is rendered outside the form.
</ParamField>

<ParamField body="Root.grid" type="boolean" default="false">
  Whether list items are presented in a grid layout.
  When enabled, arrow keys navigate across rows and columns inferred from DOM rows.
</ParamField>

<ParamField body="Root.highlightItemOnHover" type="boolean" default="true">
  Whether moving the pointer over items should highlight them.
  Disabling this prop allows CSS `:hover` to be differentiated from the `:focus` (`data-highlighted`) state.
</ParamField>

<ParamField body="Root.id" type="string">
  The id of the component.
</ParamField>

<ParamField body="Root.inline" type="boolean" default="false">
  Whether the list is rendered inline without using the component's own popup.

  Specify `open` unconditionally in conjunction with this prop so the list is considered
  visible: `<Autocomplete.Root inline open>`
</ParamField>

<ParamField body="Root.inputRef" type="Ref&lt;HTMLInputElement&gt;">
  A ref to the hidden input element.
</ParamField>

<ParamField body="Root.items" type="readonly TItem[] | readonly { items: readonly TItem[] }[]">
  Flat items or groups with an items array. Preserves the upstream item type; nullish entries are not supported.
</ParamField>

<ParamField body="Root.itemToStringValue" type="(itemValue: TItem) =&gt; string">
  When the item values are objects (`<Autocomplete.Item value={object}>`), this function converts the object value to a string representation for both display in the input and form submission.
  If the shape of the object is `{ value, label }`, the label will be used automatically without needing to specify this prop.
</ParamField>

<ParamField body="Root.keepHighlight" type="boolean" default="false">
  Whether the highlighted item should be preserved when the pointer leaves the list.
</ParamField>

<ParamField body="Root.limit" type="number" default="-1">
  The maximum number of items to display in the list.
</ParamField>

<ParamField body="Root.locale" type="LocalesArgument">
  The locale to use for string comparison.
  Defaults to the user's runtime locale.
</ParamField>

<ParamField body="Root.loopFocus" type="boolean" default="true">
  Whether to loop keyboard focus back to the input when the end of the list is reached while using the arrow keys. The first item can then be reached by pressing &lt;kbd>ArrowDown&lt;/kbd> again from the input, or the last item can be reached by pressing &lt;kbd>ArrowUp&lt;/kbd> from the input.
  The input is always included in the focus loop per [ARIA Authoring Practices](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/).
  When disabled, focus does not move when on the last element and the user presses &lt;kbd>ArrowDown&lt;/kbd>, or when on the first element and the user presses &lt;kbd>ArrowUp&lt;/kbd>.
</ParamField>

<ParamField body="Root.modal" type="boolean" default="false">
  Determines if the popup enters a modal state when open.
  - `true`: user interaction is limited to the popup: document page scroll is locked and pointer interactions on outside elements are disabled.
  - `false`: user interaction with the rest of the document is allowed.

  On touch devices, a `true` modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior.
</ParamField>

<ParamField body="Root.mode" type="&quot;both&quot; | &quot;inline&quot; | &quot;list&quot; | &quot;none&quot;" default="list">
  Controls how the autocomplete behaves with respect to list filtering and inline autocompletion.
  - `list` (default): items are dynamically filtered based on the input value. The input value does not change based on the active item.
  - `both`: items are dynamically filtered based on the input value, which will temporarily change based on the active item (inline autocompletion).
  - `inline`: items are static (not filtered), and the input value will temporarily change based on the active item (inline autocompletion).
  - `none`: items are static (not filtered), and the input value will not change based on the active item.
</ParamField>

<ParamField body="Root.name" type="string">
  Identifies the field when a form is submitted.
</ParamField>

<ParamField body="Root.onItemHighlighted" type="(highlightedValue: TItem | undefined, eventDetails: AutocompleteRootHighlightEventDetails) =&gt; void">
  Callback fired when an item is highlighted or unhighlighted.
  Receives the highlighted item value (or `undefined` if no item is highlighted) and event details with a `reason` property describing why the highlight changed.
  The `reason` can be:
  - `'keyboard'`: the highlight changed due to keyboard navigation.
  - `'pointer'`: the highlight changed due to pointer hovering. The event may be a `MouseEvent`
    rather than a `PointerEvent`.
  - `'none'`: the highlight changed for another reason, such as typing, `autoHighlight`, the
    item list changing, or the popup opening or closing.
</ParamField>

<ParamField body="Root.onOpenChange" type="((open: boolean, eventDetails: AutocompleteRootOpenChangeEventDetails) =&gt; void)">
  Event handler called when the popup is opened or closed.
</ParamField>

<ParamField body="Root.onOpenChangeComplete" type="((open: boolean) =&gt; void)">
  Event handler called after any animations complete when the popup is opened or closed.
</ParamField>

<ParamField body="Root.onValueChange" type="((value: string, eventDetails: AutocompleteRootChangeEventDetails) =&gt; void)">
  Event handler called when the input value of the autocomplete changes.
</ParamField>

<ParamField body="Root.open" type="boolean">
  Whether the popup is currently open. Use when controlled.
</ParamField>

<ParamField body="Root.openOnInputClick" type="boolean" default="false">
  Whether the popup opens when clicking the input.
</ParamField>

<ParamField body="Root.readOnly" type="boolean" default="false">
  Whether the user should be unable to choose a different option from the popup.
</ParamField>

<ParamField body="Root.required" type="boolean" default="false">
  Whether the user must choose a value before submitting a form.
</ParamField>

<ParamField body="Root.submitOnItemClick" type="boolean" default="false">
  Whether clicking an item should submit the autocomplete's owning form.
  By default, clicking an item via a pointer or &lt;kbd>Enter&lt;/kbd> key does not submit the owning form.
  Useful when the autocomplete is used as a single-field form search input.
</ParamField>

<ParamField body="Root.value" type="string | number | readonly string[]">
  The input value of the autocomplete. Use when controlled.
</ParamField>

<ParamField body="Root.virtualized" type="boolean" default="false">
  Whether the items are being externally virtualized.
</ParamField>

### Autocomplete.Value

<ParamField body="Value.children" type="ReactNode | ((value: string) =&gt; ReactNode)">
  Content or render function receiving the current input text.
</ParamField>

### Autocomplete.Trigger

<ParamField body="Trigger.className" type="string | ((state: AutocompleteTriggerState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Trigger.disabled" type="boolean" default="false">
  Whether the component should ignore user interaction.
</ParamField>

<ParamField body="Trigger.nativeButton" type="boolean" default="true">
  Whether the component renders a native `<button>` element when replacing it
  via the `render` prop.
  Set to `false` if the rendered element is not a button (for example, `<div>`).
</ParamField>

<ParamField body="Trigger.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, AutocompleteTriggerState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Trigger.style" type="CSSProperties | ((state: AutocompleteTriggerState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.InputGroup

<ParamField body="InputGroup.className" type="string | ((state: AutocompleteInputGroupState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="InputGroup.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, AutocompleteInputGroupState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="InputGroup.style" type="CSSProperties | ((state: AutocompleteInputGroupState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Input

<ParamField body="Input.className" type="string | ((state: ComboboxInputState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Input.disabled" type="boolean" default="false">
  Whether the component should ignore user interaction.
</ParamField>

<ParamField body="Input.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxInputState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Input.size" type="&quot;md&quot; | &quot;sm&quot;">
  Visual size of the input. Inside an InputGroup, the group size applies. Not accepted with render.
</ParamField>

<ParamField body="Input.style" type="CSSProperties | ((state: ComboboxInputState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Icon

<ParamField body="Icon.className" type="string | ((state: ComboboxIconState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Icon.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxIconState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Icon.style" type="CSSProperties | ((state: ComboboxIconState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Clear

<ParamField body="Clear.className" type="string | ((state: ComboboxClearState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Clear.disabled" type="boolean" default="false">
  Whether the component should ignore user interaction.
</ParamField>

<ParamField body="Clear.keepMounted" type="boolean" default="false">
  Whether the component should remain mounted in the DOM when not visible.
</ParamField>

<ParamField body="Clear.nativeButton" type="boolean" default="true">
  Whether the component renders a native `<button>` element when replacing it
  via the `render` prop.
  Set to `false` if the rendered element is not a button (for example, `<div>`).
</ParamField>

<ParamField body="Clear.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxClearState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Clear.style" type="CSSProperties | ((state: ComboboxClearState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Portal

<ParamField body="Portal.className" type="string | ((state: ComboboxPortalState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Portal.container" type="HTMLElement | ShadowRoot | RefObject&lt;HTMLElement | ShadowRoot | null&gt; | null">
  Portal destination. Omitted uses the scoped theme container; explicit null waits without rendering. Element, ShadowRoot and ref targets pass through to Base UI.
</ParamField>

<ParamField body="Portal.keepMounted" type="boolean" default="false">
  Whether to keep the portal mounted in the DOM while the popup is hidden.
</ParamField>

<ParamField body="Portal.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxPortalState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Portal.style" type="CSSProperties | ((state: ComboboxPortalState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Backdrop

<ParamField body="Backdrop.className" type="string | ((state: ComboboxBackdropState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Backdrop.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxBackdropState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Backdrop.style" type="CSSProperties | ((state: ComboboxBackdropState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Positioner

<ParamField body="Positioner.align" type="&quot;center&quot; | &quot;end&quot; | &quot;start&quot;" default="start">
  Alignment relative to the anchor. Defaults to start.
</ParamField>

<ParamField body="Positioner.alignOffset" type="number | OffsetFunction" default="0">
  Additional offset along the alignment axis in pixels.
  Also accepts a function that returns the offset to read the dimensions of the anchor
  and positioner elements, along with its side and alignment.

  The function takes a `data` object parameter with the following properties:
  - `data.anchor`: the dimensions of the anchor element with properties `width` and `height`.
  - `data.positioner`: the dimensions of the positioner element with properties `width` and `height`.
  - `data.side`: which side of the anchor element the positioner is aligned against.
  - `data.align`: how the positioner is aligned relative to the specified side.
</ParamField>

<ParamField body="Positioner.anchor" type="Element | VirtualElement | RefObject&lt;Element | null&gt; | (() =&gt; Element | VirtualElement | null) | null">
  An element to position the popup against.
  By default, the popup will be positioned against the trigger.
</ParamField>

<ParamField body="Positioner.arrowPadding" type="number" default="5">
  Minimum distance to maintain between the arrow and the edges of the popup.

  Use it to prevent the arrow element from hanging out of the rounded corners of a popup.
</ParamField>

<ParamField body="Positioner.className" type="string | ((state: ComboboxPositionerState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Positioner.collisionAvoidance" type="CollisionAvoidance">
  Determines how to handle collisions when positioning the popup.

  `side` controls overflow on the preferred placement axis (`top`/`bottom` or `left`/`right`):
  - `'flip'`: keep the requested side when it fits; otherwise try the opposite side
    (`top` and `bottom`, or `left` and `right`).
  - `'shift'`: never change side; keep the requested side and move the popup within
    the clipping boundary so it stays visible.
  - `'none'`: do not correct side-axis overflow.

  `align` controls overflow on the alignment axis (`start`/`center`/`end`):
  - `'flip'`: keep side, but swap `start` and `end` when the requested alignment overflows.
  - `'shift'`: keep side and requested alignment, then nudge the popup along the
    alignment axis to fit.
  - `'none'`: do not correct alignment-axis overflow.

  `fallbackAxisSide` controls fallback behavior on the perpendicular axis when the
  preferred axis cannot fit:
  - `'start'`: allow perpendicular fallback and try the logical start side first
    (`top` before `bottom`, or `left` before `right` in LTR).
  - `'end'`: allow perpendicular fallback and try the logical end side first
    (`bottom` before `top`, or `right` before `left` in LTR).
  - `'none'`: do not fallback to the perpendicular axis.

  When `side` is `'shift'`, explicitly setting `align` only supports `'shift'` or `'none'`.
  If `align` is omitted, it defaults to `'flip'`.
</ParamField>

<ParamField body="Positioner.collisionBoundary" type="Boundary" default="clipping-ancestors">
  An element or a rectangle that delimits the area that the popup is confined to.
</ParamField>

<ParamField body="Positioner.collisionPadding" type="Padding" default="5">
  Additional space to maintain from the edge of the collision boundary.
</ParamField>

<ParamField body="Positioner.disableAnchorTracking" type="boolean" default="false">
  Whether to disable the popup from tracking any layout shift of its positioning anchor.
</ParamField>

<ParamField body="Positioner.positionMethod" type="&quot;absolute&quot; | &quot;fixed&quot;" default="absolute">
  Determines which CSS `position` property to use.
</ParamField>

<ParamField body="Positioner.ref" type="Ref&lt;HTMLDivElement&gt;">
  Ref to the positioning div, separate from Popup and Portal.
</ParamField>

<ParamField body="Positioner.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxPositionerState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Positioner.side" type="&quot;bottom&quot; | &quot;inline-end&quot; | &quot;inline-start&quot; | &quot;left&quot; | &quot;right&quot; | &quot;top&quot;" default="bottom">
  Which side of the anchor element to align the popup against.
  May automatically change to avoid collisions.
</ParamField>

<ParamField body="Positioner.sideOffset" type="number | OffsetFunction" default="8">
  Distance from the anchor. Defaults to 8; supports functional offsets.
</ParamField>

<ParamField body="Positioner.sticky" type="boolean" default="false">
  Whether to maintain the popup in the viewport after
  the anchor element was scrolled out of view.
</ParamField>

<ParamField body="Positioner.style" type="CSSProperties | ((state: ComboboxPositionerState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Popup

<ParamField body="Popup.className" type="string | ((state: ComboboxPopupState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Popup.finalFocus" type="boolean | RefObject&lt;HTMLElement | null&gt; | ((closeType: InteractionType) =&gt; boolean | void | HTMLElement | null)">
  Determines the element to focus when the popup is closed.

  - `false`: Do not move focus.
  - `true`: Move focus based on the default behavior (trigger or previously focused element).
  - `RefObject`: Move focus to the ref element.
  - `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).
    Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.
</ParamField>

<ParamField body="Popup.initialFocus" type="boolean | RefObject&lt;HTMLElement | null&gt; | ((openType: InteractionType) =&gt; boolean | void | HTMLElement | null)">
  Determines the element to focus when the popup is opened.

  - `false`: Do not move focus.
  - `true`: Move focus based on the default behavior (first tabbable element or popup).
  - `RefObject`: Move focus to the ref element.
  - `function`: Called with the interaction type (`mouse`, `touch`, `pen`, or `keyboard`).
    Return an element to focus, `true` to use the default behavior, or `false`/`undefined` to do nothing.
</ParamField>

<ParamField body="Popup.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxPopupState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Popup.style" type="CSSProperties | ((state: ComboboxPopupState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

<ParamField body="Popup.width" type="string | number">
  Width of the popup. Overrides its default minimum anchor width.
</ParamField>

### Autocomplete.Arrow

<ParamField body="Arrow.className" type="string | ((state: ComboboxArrowState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Arrow.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxArrowState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Arrow.style" type="CSSProperties | ((state: ComboboxArrowState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.List

<ParamField body="List.className" type="string | ((state: ComboboxListState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="List.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxListState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="List.style" type="CSSProperties | ((state: ComboboxListState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Status

<ParamField body="Status.className" type="string | ((state: ComboboxStatusState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Status.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxStatusState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Status.style" type="CSSProperties | ((state: ComboboxStatusState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Group

<ParamField body="Group.className" type="string | ((state: ComboboxGroupState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Group.items" type="readonly any[]">
  Items to be rendered within this group.
  When provided, child `Collection` components will use these items.
</ParamField>

<ParamField body="Group.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxGroupState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Group.style" type="CSSProperties | ((state: ComboboxGroupState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.GroupLabel

<ParamField body="GroupLabel.className" type="string | ((state: ComboboxGroupLabelState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="GroupLabel.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxGroupLabelState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="GroupLabel.style" type="CSSProperties | ((state: ComboboxGroupLabelState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Item

<ParamField body="Item.className" type="string | ((state: AutocompleteItemState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Item.description" type="ReactNode">
  Supporting text, placed according to `descriptionPlacement`.
</ParamField>

<ParamField body="Item.descriptionPlacement" type="&quot;end&quot; | &quot;inline&quot;" default="inline">
  Where the description renders: inline after the content or at the end of the row.
</ParamField>

<ParamField body="Item.disabled" type="boolean" default="false">
  Whether the component should ignore user interaction.
</ParamField>

<ParamField body="Item.endIcon" type="ReactNode">
  Icon rendered after the content.
</ParamField>

<ParamField body="Item.index" type="number">
  The index of the item in the list. Improves performance when specified by avoiding the need to calculate the index automatically from the DOM.
</ParamField>

<ParamField body="Item.nativeButton" type="boolean" default="false">
  Whether the component renders a native `<button>` element when replacing it
  via the `render` prop.
  Set to `true` if the rendered element is a native button.
</ParamField>

<ParamField body="Item.onClick" type="((event: BaseUIEvent&lt;MouseEvent&lt;HTMLDivElement, MouseEvent&gt;&gt;) =&gt; void)">
  An optional click handler for the item when selected.
  It fires when clicking the item with the pointer, as well as when pressing `Enter` with the keyboard if the item is highlighted when the `Input` or `List` element has focus.
</ParamField>

<ParamField body="Item.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, AutocompleteItemState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Item.startIcon" type="ReactNode">
  Icon rendered before the content.
</ParamField>

<ParamField body="Item.style" type="CSSProperties | ((state: AutocompleteItemState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

<ParamField body="Item.value" type="any" default="null">
  A unique value that identifies this item.
</ParamField>

### Autocomplete.Row

<ParamField body="Row.className" type="string | ((state: ComboboxRowState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Row.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxRowState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Row.style" type="CSSProperties | ((state: ComboboxRowState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Collection

<ParamField body="Collection.children" type="(item: any, index: number) =&gt; ReactNode" required>
  Render function receiving each filtered item and its index.
</ParamField>

### Autocomplete.Empty

<ParamField body="Empty.className" type="string | ((state: ComboboxEmptyState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Empty.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, ComboboxEmptyState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Empty.style" type="CSSProperties | ((state: ComboboxEmptyState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>

### Autocomplete.Separator

<ParamField body="Separator.className" type="string | ((state: AutocompleteSeparatorState) =&gt; string | undefined)">
  CSS class applied to the element, or a function that
  returns a class based on the component's state.
</ParamField>

<ParamField body="Separator.orientation" type="&quot;horizontal&quot; | &quot;vertical&quot;" default="horizontal">
  The orientation of the separator.
</ParamField>

<ParamField body="Separator.render" type="ReactElement&lt;unknown, string | JSXElementConstructor&lt;any&gt;&gt; | ComponentRenderFn&lt;HTMLProps, AutocompleteSeparatorState&gt;">
  Allows you to replace the component's HTML element
  with a different tag, or compose it with another component.

  Accepts a `ReactElement` or a function that returns the element to render.
</ParamField>

<ParamField body="Separator.style" type="CSSProperties | ((state: AutocompleteSeparatorState) =&gt; CSSProperties | undefined)">
  Style applied to the element, or a function that
  returns a style object based on the component's state.
</ParamField>