react-aria

Search for an npm package

react-aria

module "react-aria" {

A Collection renders a list of items, automatically managing caching and keys.

export function Collection<T>(props: CollectionProps<T>): Element

Builds a Collection from the children provided to the content prop, and passes it to the child render prop function.

export function CollectionBuilder<C extends BaseCollection<any>>(props: CollectionBuilderProps<C>): ReactElement
Unexported symbols referenced here

An immutable Collection implementation. Updates are only allowed when it is not marked as frozen. This can be subclassed to implement custom collection behaviors.

class BaseCollection<T> implements import("@react-types/shared").Collection<import("@react-types/shared").Node<T>> {
keyMap: Map<import("@react-types/shared").Key, CollectionNode<T>>;
firstKey: import("@react-types/shared").Key | null;
lastKey: import("@react-types/shared").Key | null;
frozen: boolean;
itemCount: number;
get size(): number;
getKeys(): IterableIterator<import("@react-types/shared").Key>;
[Symbol.iterator](): IterableIterator<import("@react-types/shared").Node<T>>;
getChildren(key: import("@react-types/shared").Key): Iterable<import("@react-types/shared").Node<T>>;
getKeyBefore(key: import("@react-types/shared").Key): import("@react-types/shared").Key | null;
getKeyAfter(key: import("@react-types/shared").Key): import("@react-types/shared").Key | null;
getFirstKey(): import("@react-types/shared").Key | null;
getLastKey(): import("@react-types/shared").Key | null;
getItem(key: import("@react-types/shared").Key): import("@react-types/shared").Node<T> | null;
at(): import("@react-types/shared").Node<T>;
clone(): this;
addNode(node: CollectionNode<T>): void;
addDescendants(node: CollectionNode<T>, oldCollection: BaseCollection<T>): void;
removeNode(key: import("@react-types/shared").Key): void;
commit(firstKey: import("@react-types/shared").Key | null, lastKey: import("@react-types/shared").Key | null, isSSR?: boolean): void;
filter(filterFn: FilterFn<T>): this;
}
Referenced by

An immutable object representing a Node in a Collection.

class CollectionNode<T> implements import("@react-types/shared").Node<T> {
constructor(key: import("@react-types/shared").Key)
static readonly type: string;
readonly type: string;
readonly key: import("@react-types/shared").Key;
readonly value: T | null;
readonly level: number;
readonly hasChildNodes: boolean;
readonly rendered: ReactNode;
readonly textValue: string;
readonly "aria-label"?: string;
readonly index: number;
readonly parentKey: import("@react-types/shared").Key | null;
readonly prevKey: import("@react-types/shared").Key | null;
readonly nextKey: import("@react-types/shared").Key | null;
readonly firstChildKey: import("@react-types/shared").Key | null;
readonly lastChildKey: import("@react-types/shared").Key | null;
readonly props: any;
readonly render?: (node: import("@react-types/shared").Node<any>) => ReactElement;
readonly colSpan: number | null;
readonly colIndex: number | null;
get childNodes(): Iterable<Node<T>>;
clone(): this;
filter(collection: BaseCollection<T>, newCollection: BaseCollection<T>, filterFn: FilterFn<T>): CollectionNode<T> | null;
}
Referenced by
type FilterFn<T> = (textValue: string, node: import("@react-types/shared").Node<T>) => boolean
Referenced by
export function createLeafComponent<T, P extends object, E extends Element>(CollectionNodeClass: CollectionNodeClass<any> | string, render: (props: P, ref: ForwardedRef<E>) => ReactElement | null): (props: P & RefAttributes<E>) => ReactElement | null
export function createLeafComponent<T, P extends object, E extends Element>(CollectionNodeClass: CollectionNodeClass<any> | string, render: (props: P, ref: ForwardedRef<E>, node: import("@react-types/shared").Node<T>) => ReactElement | null): (props: P & RefAttributes<E>) => ReactElement | null
Unexported symbols referenced here
type CollectionNodeClass<T> = {
new (key: import("@react-types/shared").Key): CollectionNode<T>;
readonly type: string;
}
Referenced by
export function createBranchComponent<T, P extends {
children?: any;
}, E extends Element>(CollectionNodeClass: CollectionNodeClass<any> | string, render: (props: P, ref: ForwardedRef<E>, node: import("@react-types/shared").Node<T>) => ReactElement | null, useChildren?: (props: P) => ReactNode): (props: P & RefAttributes<E>) => ReactElement | null

Provides the behavior and accessibility implementation for an autocomplete component. An autocomplete combines a text input with a collection, allowing users to filter the collection's contents match a query.

more
less

@param — - Props for the autocomplete.

@param — - State for the autocomplete, as returned by useAutocompleteState.

export function useAutocomplete<T>(props: AriaAutocompleteOptions<T>, state: AutocompleteState): AutocompleteAria<T>

Provides the behavior and accessibility implementation for an in a breadcrumbs component. See useBreadcrumbs for details about breadcrumbs.

export function useBreadcrumbItem(props: AriaBreadcrumbItemProps, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): BreadcrumbItemAria

Provides the behavior and accessibility implementation for a breadcrumbs component. Breadcrumbs display a hierarchy of links to the current page or resource in an application.

export function useBreadcrumbs(props: AriaBreadcrumbsProps): BreadcrumbsAria
export function useButton(props: AriaButtonOptions<"button">, ref: RefObject<HTMLButtonElement | null>): ButtonAria<ButtonHTMLAttributes<HTMLButtonElement>>
export function useButton(props: AriaButtonOptions<"a">, ref: RefObject<HTMLAnchorElement | null>): ButtonAria<AnchorHTMLAttributes<HTMLAnchorElement>>
export function useButton(props: AriaButtonOptions<"div">, ref: RefObject<HTMLDivElement | null>): ButtonAria<HTMLAttributes<HTMLDivElement>>
export function useButton(props: AriaButtonOptions<"input">, ref: RefObject<HTMLInputElement | null>): ButtonAria<InputHTMLAttributes<HTMLInputElement>>
export function useButton(props: AriaButtonOptions<"span">, ref: RefObject<HTMLSpanElement | null>): ButtonAria<HTMLAttributes<HTMLSpanElement>>
export function useButton(props: AriaButtonOptions<ElementType>, ref: RefObject<Element | null>): ButtonAria<import("@react-types/shared").DOMAttributes>
export function useToggleButton(props: AriaToggleButtonOptions<"button">, state: import("react-stately").ToggleState, ref: RefObject<HTMLButtonElement | null>): ToggleButtonAria<ButtonHTMLAttributes<HTMLButtonElement>>
export function useToggleButton(props: AriaToggleButtonOptions<"a">, state: import("react-stately").ToggleState, ref: RefObject<HTMLAnchorElement | null>): ToggleButtonAria<AnchorHTMLAttributes<HTMLAnchorElement>>
export function useToggleButton(props: AriaToggleButtonOptions<"div">, state: import("react-stately").ToggleState, ref: RefObject<HTMLDivElement | null>): ToggleButtonAria<HTMLAttributes<HTMLDivElement>>
export function useToggleButton(props: AriaToggleButtonOptions<"input">, state: import("react-stately").ToggleState, ref: RefObject<HTMLInputElement | null>): ToggleButtonAria<InputHTMLAttributes<HTMLInputElement>>
export function useToggleButton(props: AriaToggleButtonOptions<"span">, state: import("react-stately").ToggleState, ref: RefObject<HTMLSpanElement | null>): ToggleButtonAria<HTMLAttributes<HTMLSpanElement>>
export function useToggleButton(props: AriaToggleButtonOptions<ElementType>, state: import("react-stately").ToggleState, ref: RefObject<Element | null>): ToggleButtonAria<import("@react-types/shared").DOMAttributes>
export function useToggleButtonGroup(props: AriaToggleButtonGroupProps, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): ToggleButtonGroupAria
export function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<"button">, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<HTMLButtonElement | null>): ToggleButtonAria<ButtonHTMLAttributes<HTMLButtonElement>>
export function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<"a">, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<HTMLAnchorElement | null>): ToggleButtonAria<AnchorHTMLAttributes<HTMLAnchorElement>>
export function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<"div">, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<HTMLDivElement | null>): ToggleButtonAria<HTMLAttributes<HTMLDivElement>>
export function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<"input">, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<HTMLInputElement | null>): ToggleButtonAria<InputHTMLAttributes<HTMLInputElement>>
export function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<"span">, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<HTMLSpanElement | null>): ToggleButtonAria<HTMLAttributes<HTMLSpanElement>>
export function useToggleButtonGroupItem(props: AriaToggleButtonGroupItemOptions<ElementType>, state: import("react-stately").ToggleGroupState, ref: import("@react-types/shared").RefObject<Element | null>): ToggleButtonAria<import("@react-types/shared").DOMAttributes>

Provides the behavior and accessibility implementation for a calendar component. A calendar displays one or more date grids and allows users to select a single date.

export function useCalendar<T extends import("react-stately").DateValue, M extends import("react-stately").CalendarSelectionMode = "single">(props: AriaCalendarProps<T, M>, state: import("react-stately").CalendarState<M>): CalendarAria

Provides the behavior and accessibility implementation for a calendar cell component. A calendar cell displays a date cell within a calendar grid which can be selected by the user.

export function useCalendarCell(props: AriaCalendarCellProps, state: import("react-stately").CalendarState<import("react-stately").CalendarSelectionMode> | import("react-stately").RangeCalendarState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): CalendarCellAria

Provides the behavior and accessibility implementation for a calendar grid component. A calendar grid displays a single grid of days within a calendar or range calendar which can be keyboard navigated and selected by the user.

export function useCalendarGrid(props: AriaCalendarGridProps, state: import("react-stately").CalendarState<import("react-stately").CalendarSelectionMode> | import("react-stately").RangeCalendarState): CalendarGridAria

Provides the behavior and accessibility implementation for a range calendar component. A range calendar displays one or more date grids and allows users to select a contiguous range of dates.

export function useRangeCalendar<T extends import("react-stately").DateValue>(props: AriaRangeCalendarProps<T>, state: import("react-stately").RangeCalendarState, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): CalendarAria

Provides the behavior and accessibility implementation for a checkbox component. Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.

more
less

@param — - Props for the checkbox.

@param — - State for the checkbox, as returned by useToggleState.

@param — - A ref for the HTML input element.

export function useCheckbox(props: AriaCheckboxProps, state: import("react-stately").ToggleState, inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>): CheckboxAria

Provides the behavior and accessibility implementation for a checkbox group component. Checkbox groups allow users to select multiple items from a list of options.

more
less

@param — - Props for the checkbox group.

@param — - State for the checkbox group, as returned by useCheckboxGroupState.

export function useCheckboxGroup(props: AriaCheckboxGroupProps, state: import("react-stately").CheckboxGroupState): CheckboxGroupAria

Provides the behavior and accessibility implementation for a checkbox component contained within a checkbox group. Checkbox groups allow users to select multiple items from a list of options.

more
less

@param — - Props for the checkbox.

@param — - State for the checkbox, as returned by useCheckboxGroupState.

@param — - A ref for the HTML input element.

export function useCheckboxGroupItem(props: AriaCheckboxGroupItemProps, state: import("react-stately").CheckboxGroupState, inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>): CheckboxAria

Provides the behavior and accessibility implementation for a color area component. Color area allows users to adjust two channels of an RGB, HSL or HSB color value against a two-dimensional gradient background.

export function useColorArea(props: AriaColorAreaOptions, state: import("react-stately").ColorAreaState): ColorAreaAria

Provides the behavior and accessibility implementation for a color channel field, allowing users to edit the value of an individual color channel.

export function useColorChannelField(props: AriaColorChannelFieldProps, state: import("react-stately").ColorChannelFieldState, inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>): ColorChannelFieldAria

Provides the behavior and accessibility implementation for a color field component. Color fields allow users to enter and adjust a hex color value.

export function useColorField(props: AriaColorFieldProps, state: import("react-stately").ColorFieldState, ref: RefObject<HTMLInputElement | null>): ColorFieldAria

Provides the behavior and accessibility implementation for a color slider component. Color sliders allow users to adjust an individual channel of a color value.

export function useColorSlider(props: AriaColorSliderOptions, state: import("react-stately").ColorSliderState): ColorSliderAria

Provides the accessibility implementation for a color swatch component. A color swatch displays a preview of a selected color.

export function useColorSwatch(props: AriaColorSwatchProps): ColorSwatchAria

Provides the behavior and accessibility implementation for a color wheel component. Color wheels allow users to adjust the hue of an HSL or HSB color value on a circular track.

export function useColorWheel(props: AriaColorWheelOptions, state: import("react-stately").ColorWheelState, inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>): ColorWheelAria

Provides the behavior and accessibility implementation for a combo box component. A combo box combines a text input with a listbox, allowing users to filter a list of options to items matching a query.

more
less

@param — - Props for the combo box.

@param — - State for the select, as returned by useComboBoxState.

export function useComboBox<T, M extends import("react-stately").SelectionMode = "single">(props: AriaComboBoxOptions<T, M>, state: import("react-stately").ComboBoxState<T, M>): ComboBoxAria<T>

Provides the behavior and accessibility implementation for a date field component. A date field allows users to enter and edit date and time values using a keyboard. Each part of a date value is displayed in an individually editable segment.

export function useDateField<T extends import("react-stately").DateValue>(props: AriaDateFieldOptions<T>, state: import("react-stately").DateFieldState, ref: import("@react-types/shared").RefObject<Element | null>): DateFieldAria

Provides the behavior and accessibility implementation for a time field component. A time field allows users to enter and edit time values using a keyboard. Each part of a time value is displayed in an individually editable segment.

export function useTimeField<T extends import("react-stately").TimeValue>(props: AriaTimeFieldOptions<T>, state: import("react-stately").TimeFieldState, ref: import("@react-types/shared").RefObject<Element | null>): DateFieldAria

Provides the behavior and accessibility implementation for a date picker component. A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.

export function useDatePicker<T extends import("react-stately").DateValue>(props: AriaDatePickerProps<T>, state: import("react-stately").DatePickerState, ref: import("@react-types/shared").RefObject<Element | null>): DatePickerAria

Provides the behavior and accessibility implementation for a date picker component. A date range picker combines two DateFields and a RangeCalendar popover to allow users to enter or select a date and time range.

export function useDateRangePicker<T extends import("react-stately").DateValue>(props: AriaDateRangePickerProps<T>, state: import("react-stately").DateRangePickerState, ref: import("@react-types/shared").RefObject<Element | null>): DateRangePickerAria

Provides the behavior and accessibility implementation for a segment in a date field. A date segment displays an individual unit of a date and time, and allows users to edit the value by typing or using the arrow keys to increment and decrement.

export function useDateSegment(segment: import("react-stately").DateSegment, state: import("react-stately").DateFieldState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): DateSegmentAria

Provides the behavior and accessibility implementation for a dialog component. A dialog is an overlay shown above other content in an application.

export function useDialog(props: AriaDialogProps, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): DialogAria

Provides the behavior and accessibility implementation for a disclosure component.

more
less

@param — - Props for the disclosure.

@param — - State for the disclosure, as returned by useDisclosureState.

@param — - A ref for the disclosure panel.

export function useDisclosure(props: AriaDisclosureProps, state: import("react-stately").DisclosureState, ref: RefObject<HTMLElement | null>): DisclosureAria

Handles drag interactions for an element, with support for traditional mouse and touch based drag and drop, in addition to full parity for keyboard and screen reader users.

export function useDrag(options: DragOptions): DragResult

Handles drop interactions for an element, with support for traditional mouse and touch based drag and drop, in addition to full parity for keyboard and screen reader users.

export function useDrop(options: DropOptions): DropResult

Handles drag interactions for a collection component, with support for traditional mouse and touch based drag and drop, in addition to full parity for keyboard and screen reader users.

export function useDraggableCollection(props: DraggableCollectionOptions, state: import("react-stately").DraggableCollectionState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): void

Handles drop interactions for a collection component, with support for traditional mouse and touch based drag and drop, in addition to full parity for keyboard and screen reader users.

export function useDroppableCollection(props: DroppableCollectionOptions, state: import("react-stately").DroppableCollectionState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): DroppableCollectionResult

Handles drop interactions for an item within a collection component.

export function useDroppableItem(options: DroppableItemOptions, state: import("react-stately").DroppableCollectionState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): DroppableItemResult

Handles drop interactions for a target within a droppable collection.

export function useDropIndicator(props: DropIndicatorProps, state: import("react-stately").DroppableCollectionState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): DropIndicatorAria

Handles drag interactions for an item within a draggable collection.

export function useDraggableItem(props: DraggableItemProps, state: import("react-stately").DraggableCollectionState): DraggableItemResult

Handles clipboard interactions for a focusable element. Supports items of multiple data types, and integrates with the operating system native clipboard.

export function useClipboard(options: ClipboardProps): ClipboardResult
export const DragPreview: ForwardRefExoticComponent<DragPreviewProps & RefAttributes<import("@react-types/shared").DragPreviewRenderer | null>> = ...
export class ListDropTargetDelegate implements import("@react-types/shared").DropTargetDelegate {
constructor(collection: Iterable<import("@react-types/shared").Node<unknown>>, ref: import("@react-types/shared").RefObject<HTMLElement | null>, options?: ListDropTargetDelegateOptions)
direction: import("@react-types/shared").Direction;
getDropTargetFromPoint(x: number, y: number, isValidDropTarget: (target: import("@react-types/shared").DropTarget) => boolean): import("@react-types/shared").DropTarget;
}
Unexported symbols referenced here
interface ListDropTargetDelegateOptions {

Whether the items are arranged in a stack or grid.

more
less

@default — 'stack'

layout?: "stack" | "grid";

The primary orientation of the items. Usually this is the direction that the collection scrolls.

more
less

@default — 'vertical'

orientation?: import("@react-types/shared").Orientation;

The horizontal layout direction.

more
less

@default — 'ltr'

direction?: import("@react-types/shared").Direction;
}
Referenced by
export const DIRECTORY_DRAG_TYPE: symbol = ...

Returns whether a drop item is a directory.

export function isDirectoryDropItem(dropItem: import("@react-types/shared").DropItem): dropItem is import("@react-types/shared").DirectoryDropItem

Returns whether a drop item is a file.

export function isFileDropItem(dropItem: import("@react-types/shared").DropItem): dropItem is import("@react-types/shared").FileDropItem

Returns whether a drop item contains text data.

export function isTextDropItem(dropItem: import("@react-types/shared").DropItem): dropItem is import("@react-types/shared").TextDropItem

A utility component that applies a CSS class when an element has keyboard focus. Focus rings are visible only when the user is interacting with a keyboard, not with a mouse, touch, or other input methods.

export function FocusRing(props: FocusRingProps): ReactElement<unknown, string | JSXElementConstructor<any>>

A FocusScope manages focus for its descendants. It supports containing focus inside the scope, restoring focus to the previously focused element on unmount, and auto focusing children on mount. It also acts as a container for a programmatic focus management interface that can be used to move focus forward and back in response to user events.

export function FocusScope(props: FocusScopeProps): Element

Returns a FocusManager interface for the parent FocusScope. A FocusManager can be used to programmatically move focus within a FocusScope, e.g. in response to user events like keyboard navigation.

export function useFocusManager(): FocusManager | undefined

Determines whether a focus ring should be shown to indicate keyboard focus. Focus rings are visible only when the user is interacting with a keyboard, not with a mouse, touch, or other input methods.

export function useFocusRing(props?: AriaFocusRingProps): FocusRingAria

Provides the locale for the application to all child components.

export function I18nProvider(props: I18nProviderProps): Element

Returns the current locale and layout direction.

export function useLocale(): Locale

Determines if a locale is read right to left using [Intl.Locale]://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale.

export function isRTL(localeString: string): boolean

Provides localized string collation for the current locale. Automatically updates when the locale changes, and handles caching of the collator for performance.

more
less

@param — - Collator options.

export function useCollator(options?: CollatorOptions): Collator

Provides localized date formatting for the current locale. Automatically updates when the locale changes, and handles caching of the date formatter for performance.

more
less

@param — - Formatting options.

export function useDateFormatter(options?: DateFormatterOptions): DateFormatter

Provides localized string search functionality that is useful for filtering or matching items in a list. Options can be provided to adjust the sensitivity to case, diacritics, and other parameters.

export function useFilter(options?: CollatorOptions): Filter

Provides localized string formatting for the current locale. Supports interpolating variables, selecting the correct pluralization, and formatting numbers. Automatically updates when the locale changes.

more
less

@param — - A mapping of languages to localized strings by key.

export function useLocalizedStringFormatter<K extends string = string, T extends LocalizedString = string>(strings: LocalizedStrings<K, T>, packageName?: string): LocalizedStringFormatter<K, T>

Returns a cached LocalizedStringDictionary for the given strings.

export function useLocalizedStringDictionary<K extends string = string, T extends LocalizedString = string>(strings: LocalizedStrings<K, T>, packageName?: string): LocalizedStringDictionary<K, T>

Provides localized number formatting for the current locale. Automatically updates when the locale changes, and handles caching of the number formatter for performance.

more
less

@param — - Formatting options.

export function useNumberFormatter(options?: NumberFormatOptions): NumberFormat

Provides localized list formatting for the current locale. Automatically updates when the locale changes, and handles caching of the list formatter for performance.

more
less

@param — - Formatting options.

export function useListFormatter(options?: ListFormatOptions): ListFormat

Handles focus events for the immediate target. Focus events on child elements will be ignored.

export function useFocus<Target extends import("@react-types/shared").FocusableElement = import("@react-types/shared").FocusableElement>(props: FocusProps<Target>): FocusResult<Target>

Manages focus visible state for the page, and subscribes individual components for updates.

export function useFocusVisible(props?: FocusVisibleProps): FocusVisibleResult

Handles focus events for the target and its descendants.

export function useFocusWithin(props: FocusWithinProps): FocusWithinResult

Handles pointer hover interactions for an element. Normalizes behavior across browsers and platforms, and ignores emulated mouse events on touch devices.

export function useHover(props: HoverProps): HoverResult

Example, used in components like Dialogs and Popovers so they can close when a user clicks outside them.

export function useInteractOutside(props: InteractOutsideProps): void

Handles keyboard interactions for a focusable element.

export function useKeyboard(props: KeyboardProps): KeyboardResult

Handles move interactions across mouse, touch, and keyboard, including dragging with the mouse or touch, and using the arrow keys. Normalizes behavior across browsers and platforms, and ignores emulated mouse events on touch devices.

export function useMove(props: import("@react-types/shared").MoveEvents): MoveResult

Handles press interactions across mouse, touch, keyboard, and screen readers. It normalizes behavior across browsers and platforms, and handles many nuances of dealing with pointer and keyboard events.

export function usePress(props: PressHookProps): PressResult

Handles long press interactions across mouse and touch devices. Supports a customizable time threshold, accessibility description, and normalizes behavior across browsers and devices.

export function useLongPress(props: LongPressProps): LongPressResult

Used to make an element focusable and capable of auto focus.

export function useFocusable<T extends import("@react-types/shared").FocusableElement = import("@react-types/shared").FocusableElement>(props: FocusableOptions<T>, domRef: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): FocusableAria
export const Focusable: ForwardRefExoticComponent<FocusableComponentProps & RefAttributes<import("@react-types/shared").FocusableElement>> = ...
export const Pressable: ForwardRefExoticComponent<PressableProps & RefAttributes<import("@react-types/shared").FocusableElement>> = ...

Provides the accessibility implementation for input fields. Fields accept user input, gain context from their label, and may display a description or error message.

more
less

@param — - Props for the Field.

export function useField(props: AriaFieldProps): FieldAria

Provides the accessibility implementation for labels and their associated elements. Labels provide context for user inputs.

more
less

@param — - The props for labels and fields.

export function useLabel(props: LabelAriaProps): LabelAria

Provides the behavior and accessibility implementation for a list component with interactive children. A grid list displays data in a single column and enables a user to navigate its contents via directional navigation keys.

more
less

@param — - Props for the list.

@param — - State for the list, as returned by useListState.

@param — - The ref attached to the list element.

export function useGridList<T>(props: AriaGridListOptions<T>, state: import("react-stately").ListState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): GridListAria

Provides the behavior and accessibility implementation for a row in a grid list.

more
less

@param — - Props for the row.

@param — - State of the parent list, as returned by useListState.

@param — - The ref attached to the row element.

export function useGridListItem<T>(props: AriaGridListItemOptions, state: import("react-stately").ListState<T> | import("react-stately").TreeState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): GridListItemAria

Provides the behavior and accessibility implementation for a section in a grid list. See useGridList for more details about grid list.

more
less

@param — - Props for the section.

export function useGridListSection<T>(props: AriaGridListSectionProps, state: import("react-stately").ListState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): GridListSectionAria

Provides the behavior and accessibility implementation for a selection checkbox in a grid list.

more
less

@param — - Props for the selection checkbox.

@param — - State of the list, as returned by useListState.

export function useGridListSelectionCheckbox<T>(props: AriaGridSelectionCheckboxProps, state: import("react-stately").ListState<T>): GridSelectionCheckboxAria

Provides landmark navigation in an application. Call this with a role and label to register a landmark navigable with F6.

more
less

@param — - Props for the landmark.

@param — - Ref to the landmark.

export function useLandmark(props: AriaLandmarkProps, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): LandmarkAria

Provides the behavior and accessibility implementation for a link component. A link allows a user to navigate to another page or resource within a web page or application.

export function useLink(props: AriaLinkOptions, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): LinkAria

Provides the behavior and accessibility implementation for a listbox component. A listbox displays a list of options and allows a user to select one or more of them.

more
less

@param — - Props for the listbox.

@param — - State for the listbox, as returned by useListState.

export function useListBox<T>(props: AriaListBoxOptions<T>, state: import("react-stately").ListState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): ListBoxAria

Provides the behavior and accessibility implementation for a section in a listbox. See useListBox for more details about listboxes.

more
less

@param — - Props for the section.

export function useListBoxSection(props: AriaListBoxSectionProps): ListBoxSectionAria

Provides the behavior and accessibility implementation for an option in a listbox. See useListBox for more details about listboxes.

more
less

@param — - Props for the option.

@param — - State for the listbox, as returned by useListState.

export function useOption<T>(props: AriaOptionProps, state: import("react-stately").ListState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): OptionAria

Provides the behavior and accessibility implementation for a menu component. A menu displays a list of actions or options that a user can choose.

more
less

@param — - Props for the menu.

@param — - State for the menu, as returned by useListState.

export function useMenu<T>(props: AriaMenuOptions<T>, state: import("react-stately").TreeState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): MenuAria

Provides the behavior and accessibility implementation for an item in a menu. See useMenu for more details about menus.

more
less

@param — - Props for the item.

@param — - State for the menu, as returned by useTreeState.

export function useMenuItem<T>(props: AriaMenuItemProps, state: import("react-stately").TreeState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): MenuItemAria

Provides the behavior and accessibility implementation for a section in a menu. See useMenu for more details about menus.

more
less

@param — - Props for the section.

export function useMenuSection(props: AriaMenuSectionProps): MenuSectionAria

Provides the behavior and accessibility implementation for a menu trigger.

more
less

@param — - Props for the menu trigger.

@param — - State for the menu trigger.

@param — - Ref to the HTML element trigger for the menu.

export function useMenuTrigger<T>(props: AriaMenuTriggerProps, state: import("react-stately").MenuTriggerState, ref: import("@react-types/shared").RefObject<Element | null>): MenuTriggerAria<T>

Provides the behavior and accessibility implementation for a submenu trigger and its associated submenu.

more
less

@param — - Props for the submenu trigger and refs attach to its submenu and parent menu.

@param — - State for the submenu trigger.

@param — - Ref to the submenu trigger element.

export function useSubmenuTrigger<T>(props: AriaSubmenuTriggerProps, state: import("react-stately").SubmenuTriggerState, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): SubmenuTriggerAria<T>

Provides the accessibility implementation for a meter component. Meters represent a quantity within a known range, or a fractional value.

export function useMeter(props: AriaMeterProps): MeterAria

Provides the behavior and accessibility implementation for a number field component. Number fields allow users to enter a number, and increment or decrement the value using stepper buttons.

export function useNumberField(props: AriaNumberFieldProps, state: import("react-stately").NumberFieldState, inputRef: RefObject<HTMLInputElement | null>): NumberFieldAria

A visually hidden button that can be used to allow screen reader users to dismiss a modal or popup when there is no visual affordance to do so.

export function DismissButton(props: DismissButtonProps): Element

Each ModalProvider tracks how many modals are open in its subtree. On mount, the modals trigger addModal to increment the count, and trigger removeModal on unmount to decrement it. This is done recursively so that all parent providers are incremented and decremented. If the modal count is greater than zero, we add aria-hidden to this provider to hide its subtree from screen readers. This is done using React context in order to account for things like portals, which can cause the React tree and the DOM tree to differ significantly in structure.

export function ModalProvider(props: ModalProviderProps): Element

A container for overlays like modals and popovers. Renders the overlay into a Portal which is placed at the end of the document body. Also ensures that the overlay is hidden from screen readers if a nested modal is opened. Only the top-most modal or overlay should be accessible at once.

export function OverlayContainer(props: OverlayContainerProps): ReactPortal | null

An OverlayProvider acts as a container for the top-level application. Any application that uses modal dialogs or other overlays should be wrapped in a <OverlayProvider>. This is used to ensure that the main content of the application is hidden from screen readers if a modal or other overlay is opened. Only the top-most modal or overlay should be accessible at once.

export function OverlayProvider(props: ModalProviderProps): Element

Hides content outside the current <OverlayContainer> from screen readers on mount and restores it on unmount. Typically used by modal dialogs and other types of overlays to ensure that only the top-most modal is accessible at once.

export function useModal(options?: AriaModalOptions): ModalAria

Used to determine if the tree should be aria-hidden based on how many modals are open.

export function useModalProvider(): ModalProviderAria

A container which renders an overlay such as a popover or modal in a portal, and provides a focus scope for the child elements.

export function Overlay(props: OverlayProps): ReactPortal | null

Provides the behavior and accessibility implementation for a modal component. A modal is an overlay element which blocks interaction with elements outside it.

export function useModalOverlay(props: AriaModalOverlayProps, state: import("react-stately").OverlayTriggerState, ref: import("@react-types/shared").RefObject<HTMLElement | null>): ModalOverlayAria

Provides the behavior for overlays such as dialogs, popovers, and menus. Hides the overlay when the user interacts outside it, when the Escape key is pressed, or optionally, on blur. Only the top-most overlay will close at once.

export function useOverlay(props: AriaOverlayProps, ref: import("@react-types/shared").RefObject<Element | null>): OverlayAria

Handles positioning overlays like popovers and menus relative to a trigger element, and updating the position when the window resizes.

export function useOverlayPosition(props: AriaPositionProps): PositionAria

Handles the behavior and accessibility for an overlay trigger, e.g. a button that opens a popover, menu, or other overlay that is positioned relative to the trigger.

export function useOverlayTrigger(props: OverlayTriggerProps, state: import("react-stately").OverlayTriggerState, ref?: import("@react-types/shared").RefObject<Element | null>): OverlayTriggerAria

Provides the behavior and accessibility implementation for a popover component. A popover is an overlay element positioned relative to a trigger.

export function usePopover(props: AriaPopoverProps, state: import("react-stately").OverlayTriggerState): PopoverAria

Prevents scrolling on the document body on mount, and restores it on unmount. Also ensures that content does not shift due to the scrollbars disappearing.

export function usePreventScroll(options?: PreventScrollOptions): void
Unexported symbols referenced here
interface PreventScrollOptions {

Whether the scroll lock is disabled.

isDisabled?: boolean;
}
Referenced by

Sets the portal container for all overlay elements rendered by its children.

export function UNSAFE_PortalProvider(props: PortalProviderProps): Element
export function useUNSAFE_PortalContext(): PortalProviderContextValue

Provides the accessibility implementation for a progress bar component. Progress bars show either determinate or indeterminate progress of an operation over time.

export function useProgressBar(props: AriaProgressBarProps): ProgressBarAria

Provides the behavior and accessibility implementation for an individual radio button in a radio group.

more
less

@param — - Props for the radio.

@param — - State for the radio group, as returned by useRadioGroupState.

@param — - Ref to the HTML input element.

export function useRadio(props: AriaRadioProps, state: import("react-stately").RadioGroupState, ref: import("@react-types/shared").RefObject<HTMLInputElement | null>): RadioAria

Provides the behavior and accessibility implementation for a radio group component. Radio groups allow users to select a single item from a list of mutually exclusive options.

more
less

@param — - Props for the radio group.

@param — - State for the radio group, as returned by useRadioGroupState.

export function useRadioGroup(props: AriaRadioGroupProps, state: import("react-stately").RadioGroupState): RadioGroupAria

Provides the behavior and accessibility implementation for a search field.

more
less

@param — - Props for the search field.

@param — - State for the search field, as returned by useSearchFieldState.

@param — - A ref to the input element.

export function useSearchField(props: AriaSearchFieldProps, state: import("react-stately").SearchFieldState, inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>): SearchFieldAria

Renders a hidden native <select> element, which can be used to support browser form autofill, mobile form navigation, and native form submission.

export function HiddenSelect<T, M extends import("react-stately").SelectionMode = "single">(props: HiddenSelectProps<T, M>): Element | null

Provides the behavior and accessibility implementation for a hidden <select> element, which can be used in combination with useSelect to support browser form autofill, mobile form navigation, and native HTML form submission.

export function useHiddenSelect<T, M extends import("react-stately").SelectionMode = "single">(props: AriaHiddenSelectOptions, state: import("react-stately").SelectState<T, M>, triggerRef: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): HiddenSelectAria

Provides the behavior and accessibility implementation for a select component. A select displays a collapsible list of options and allows a user to select one of them.

more
less

@param — - Props for the select.

@param — - State for the select, as returned by useListState.

export function useSelect<T, M extends import("react-stately").SelectionMode = "single">(props: AriaSelectOptions<T, M>, state: import("react-stately").SelectState<T, M>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): SelectAria<T, M>
export class ListKeyboardDelegate<T> implements import("@react-types/shared").KeyboardDelegate {
constructor(collection: import("@react-types/shared").Collection<import("@react-types/shared").Node<T>>, disabledKeys: Set<import("@react-types/shared").Key>, ref: import("@react-types/shared").RefObject<HTMLElement | null>, collator?: Collator, expandedKeys?: Set<import("@react-types/shared").Key>)
constructor(options: ListKeyboardDelegateOptions<T>)
getNextKey(key: import("@react-types/shared").Key, options?: {
includeDisabled?: boolean;
}): import("@react-types/shared").Key | null;
getPreviousKey(key: import("@react-types/shared").Key, options?: {
includeDisabled?: boolean;
}): import("@react-types/shared").Key | null;
getKeyBelow(key: import("@react-types/shared").Key, options?: {
includeDisabled?: boolean;
}): import("@react-types/shared").Key | null;
getKeyAbove(key: import("@react-types/shared").Key, options?: {
includeDisabled?: boolean;
}): import("@react-types/shared").Key | null;
getKeyRightOf(key: import("@react-types/shared").Key, options?: {
includeDisabled?: boolean;
}): import("@react-types/shared").Key | null;
getKeyLeftOf(key: import("@react-types/shared").Key, options?: {
includeDisabled?: boolean;
}): import("@react-types/shared").Key | null;
getFirstKey(): import("@react-types/shared").Key | null;
getLastKey(): import("@react-types/shared").Key | null;
getKeyPageAbove(key: import("@react-types/shared").Key): import("@react-types/shared").Key | null;
getKeyPageBelow(key: import("@react-types/shared").Key): import("@react-types/shared").Key | null;
getKeyForSearch(search: string, fromKey?: import("@react-types/shared").Key): import("@react-types/shared").Key | null;
}
Unexported symbols referenced here
interface ListKeyboardDelegateOptions<T> {
ref: import("@react-types/shared").RefObject<HTMLElement | null>;
collator?: Collator;
layout?: "stack" | "grid";
orientation?: import("@react-types/shared").Orientation;
direction?: import("@react-types/shared").Direction;
disabledKeys?: Set<import("@react-types/shared").Key>;
disabledBehavior?: import("@react-types/shared").DisabledBehavior;
layoutDelegate?: import("@react-types/shared").LayoutDelegate;
}
Referenced by

Provides the accessibility implementation for a separator. A separator is a visual divider between two groups of content, e.g. groups of menu items or sections of a page.

export function useSeparator(props: SeparatorProps): SeparatorAria

When using SSR with React Aria in React 16 or 17, applications must be wrapped in an SSRProvider. This ensures that auto generated ids are consistent between the client and server.

export function SSRProvider(props: SSRProviderProps): Element

Returns whether the component is currently being server side rendered or hydrated on the client. Can be used to delay browser-specific rendering until after hydration.

export function useIsSSR(): boolean

Provides the behavior and accessibility implementation for a slider component representing one or more values.

more
less

@param — Props for the slider.

@param — State for the slider, as returned by useSliderState.

@param — Ref for the "track" element. The width of this element provides the "length" of the track -- the span of one dimensional space that the slider thumb can be. It also accepts click and drag motions, so that the closest thumb will follow clicks and drags on the track.

export function useSlider<T extends number | number[]>(props: AriaSliderProps<T>, state: import("react-stately").SliderState, trackRef: import("@react-types/shared").RefObject<Element | null>): SliderAria

Provides behavior and accessibility for a thumb of a slider component.

more
less

@param — Options for this Slider thumb.

@param — Slider state, created via useSliderState.

export function useSliderThumb(opts: AriaSliderThumbOptions, state: import("react-stately").SliderState): SliderThumbAria

Provides the behavior and accessibility implementation for a switch component. A switch is similar to a checkbox, but represents on/off values as opposed to selection.

more
less

@param — - Props for the switch.

@param — - State for the switch, as returned by useToggleState.

@param — - Ref to the HTML input element.

export function useSwitch(props: AriaSwitchProps, state: import("react-stately").ToggleState, ref: import("@react-types/shared").RefObject<HTMLInputElement | null>): SwitchAria

Provides the behavior and accessibility implementation for a table component. A table displays data in rows and columns and enables a user to navigate its contents via directional navigation keys, and optionally supports row selection and sorting.

more
less

@param — - Props for the table.

@param — - State for the table, as returned by useTableState.

@param — - The ref attached to the table element.

export function useTable<T>(props: AriaTableProps, state: import("react-stately").TableState<T> | TreeGridState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): GridAria

Provides the behavior and accessibility implementation for a cell in a table.

more
less

@param — - Props for the cell.

@param — - State of the table, as returned by useTableState.

@param — - The ref attached to the cell element.

export function useTableCell<T>(props: AriaTableCellProps, state: import("react-stately").TableState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TableCellAria

Provides the behavior and accessibility implementation for a column header in a table.

more
less

@param — - Props for the column header.

@param — - State of the table, as returned by useTableState.

@param — - The ref attached to the column header element.

export function useTableColumnHeader<T>(props: AriaTableColumnHeaderProps<T>, state: import("react-stately").TableState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TableColumnHeaderAria

Provides the behavior and accessibility implementation for a table column resizer element.

more
less

@param — - Props for the resizer.

@param — - State for the table's resizable columns, as returned by useTableColumnResizeState.

@param — - The ref attached to the resizer's visually hidden input element.

export function useTableColumnResize<T>(props: AriaTableColumnResizeProps<T>, state: import("react-stately").TableColumnResizeState<T>, ref: import("@react-types/shared").RefObject<HTMLInputElement | null>): TableColumnResizeAria

Provides the behavior and accessibility implementation for a header row in a table.

more
less

@param — - Props for the row.

@param — - State of the table, as returned by useTableState.

export function useTableHeaderRow<T>(props: GridRowProps<T>, state: import("react-stately").TableState<T>, ref: import("@react-types/shared").RefObject<Element | null>): TableHeaderRowAria

Provides the behavior and accessibility implementation for a row in a table.

more
less

@param — - Props for the row.

@param — - State of the table, as returned by useTableState.

export function useTableRow<T>(props: GridRowProps<T>, state: import("react-stately").TableState<T> | TreeGridState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TableRowAria
Unexported symbols referenced here
interface TableRowAria extends GridRowAria {
expandButtonProps: AriaButtonProps;
}
Referenced by
export function useTableRowGroup(): GridRowGroupAria
Unexported symbols referenced here
interface GridRowGroupAria {

Props for the row group element.

rowGroupProps: import("@react-types/shared").DOMAttributes;
}
Referenced by

Provides the behavior and accessibility implementation for the select all checkbox in a table.

more
less

@param — - Props for the select all checkbox.

@param — - State of the table, as returned by useTableState.

export function useTableSelectAllCheckbox<T>(state: import("react-stately").TableState<T>): TableSelectAllCheckboxAria

Provides the behavior and accessibility implementation for a selection checkbox in a table.

more
less

@param — - Props for the selection checkbox.

@param — - State of the table, as returned by useTableState.

export function useTableSelectionCheckbox<T>(props: AriaTableSelectionCheckboxProps, state: import("react-stately").TableState<T>): TableSelectionCheckboxAria

Provides the behavior and accessibility implementation for a tab. When selected, the associated tab panel is shown.

export function useTab<T>(props: AriaTabProps, state: import("react-stately").TabListState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TabAria

Provides the behavior and accessibility implementation for a tab list. Tabs organize content into multiple sections and allow users to navigate between them.

export function useTabList<T>(props: AriaTabListOptions<T>, state: import("react-stately").TabListState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): TabListAria

Provides the behavior and accessibility implementation for a tab panel. A tab panel is a container for the contents of a tab, and is shown when the tab is selected.

export function useTabPanel<T>(props: AriaTabPanelProps, state: import("react-stately").TabListState<T> | null, ref: import("@react-types/shared").RefObject<Element | null>): TabPanelAria

Provides the behavior and accessibility implementation for a tag component.

more
less

@param — - Props to be applied to the tag.

@param — - State for the tag group, as returned by useListState.

@param — - A ref to a DOM element for the tag.

export function useTag<T>(props: AriaTagProps<T>, state: import("react-stately").ListState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TagAria

Provides the behavior and accessibility implementation for a tag group component. A tag group is a focusable list of labels, categories, keywords, filters, or other items, with support for keyboard navigation, selection, and removal.

more
less

@param — - Props to be applied to the tag group.

@param — - State for the tag group, as returned by useListState.

@param — - A ref to a DOM element for the tag group.

export function useTagGroup<T>(props: AriaTagGroupOptions<T>, state: import("react-stately").ListState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): TagGroupAria

Provides the behavior and accessibility implementation for a text field.

more
less

@param — - Props for the text field.

@param — - Ref to the HTML input or textarea element.

export function useTextField<T extends TextFieldIntrinsicElements = DefaultElementType>(props: AriaTextFieldOptions<T>, ref: TextFieldRefObject<T>): TextFieldAria<T>
Unexported symbols referenced here

The type of ref object that can be passed to useTextField based on the given intrinsic HTML element name; e.g.RefObject<HTMLInputElement>, RefObject<HTMLTextAreaElement>.

type TextFieldRefObject<T extends TextFieldIntrinsicElements> = RefObject<TextFieldHTMLElementType[T] | null>
Referenced by

The intrinsic HTML element names that useTextField supports; e.g. input, textarea.

type TextFieldIntrinsicElements = keyof Pick<IntrinsicHTMLElements, "input" | "textarea">
Referenced by
type DefaultElementType = "input"
Referenced by

A map of HTML element names and their interface types. For example 'a' -> HTMLAnchorElement.

type IntrinsicHTMLElements = {
[K in keyof IntrinsicHTMLAttributes]: IntrinsicHTMLAttributes[K] extends HTMLAttributes<infer T> ? T : never;
}
Referenced by

A map of HTML element names and their attribute interface types. For example 'a' -> AnchorHTMLAttributes<HTMLAnchorElement>.

type IntrinsicHTMLAttributes = IntrinsicElements
Referenced by

Provides the behavior and accessibility implementation for a toast component. Toasts display brief, temporary notifications of actions, errors, or other events in an application.

export function useToast<T>(props: AriaToastProps<T>, state: import("react-stately").ToastState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): ToastAria

Provides the behavior and accessibility implementation for a toast region containing one or more toasts. Toasts display brief, temporary notifications of actions, errors, or other events in an application.

export function useToastRegion<T>(props: AriaToastRegionProps, state: import("react-stately").ToastState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): ToastRegionAria

Provides the behavior and accessibility implementation for a toolbar. A toolbar is a container for a set of interactive controls with arrow key navigation.

more
less

@param — - Props to be applied to the toolbar.

@param — - A ref to a DOM element for the toolbar.

export function useToolbar(props: AriaToolbarProps, ref: import("@react-types/shared").RefObject<HTMLElement | null>): ToolbarAria

Provides the accessibility implementation for a Tooltip component.

export function useTooltip(props: AriaTooltipProps, state?: import("react-stately").TooltipTriggerState): TooltipAria

Provides the behavior and accessibility implementation for a tooltip trigger, e.g. a button that shows a description when focused or hovered.

export function useTooltipTrigger(props: import("react-stately").TooltipTriggerProps, state: import("react-stately").TooltipTriggerState, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TooltipTriggerAria

Provides the behavior and accessibility implementation for a single column treegrid component with interactive children. A tree grid provides users with a way to navigate nested hierarchical information.

more
less

@param — - Props for the treegrid.

@param — - State for the treegrid, as returned by useTreeState.

@param — - The ref attached to the treegrid element.

export function useTree<T>(props: AriaTreeOptions<T>, state: import("react-stately").TreeState<T>, ref: import("@react-types/shared").RefObject<HTMLElement | null>): TreeAria

Provides the behavior and accessibility implementation for a row in a tree grid list.

more
less

@param — - Props for the row.

@param — - State of the parent list, as returned by useTreeState.

@param — - The ref attached to the row element.

export function useTreeItem<T>(props: AriaTreeItemOptions, state: import("react-stately").TreeState<T>, ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>): TreeItemAria

Calls all functions in the order they were chained with the same arguments.

export function chain(...callbacks: any[]): (...args: any[]) => void

Merges multiple props objects together. Event handlers are chained, classNames are combined, ids are deduplicated, and refs are merged. For all other props, the last prop object overrides all previous ones.

more
less

@param — - Multiple sets of props to merge together.

export function mergeProps<T extends PropsArg[]>(...args: T): UnionToIntersection<TupleTypes<T>>
Unexported symbols referenced here
type PropsArg = Props | null | undefined
Referenced by
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never
Referenced by
type TupleTypes<T> = {
[P in keyof T]: T[P];
} extends {
[key: number]: infer V;
} ? NullToObject<V> : never
Referenced by
interface Props {
[key: string]: any;
}
Referenced by
type NullToObject<T> = T extends null | undefined ? {} : T
Referenced by

Merges multiple refs into one. Works with either callback or object refs.

export function mergeRefs<T>(...refs: Ref<T> | MutableRefObject<T> | null | undefined[]): Ref<T>

If a default is not provided, generate an id.

more
less

@param — - Default component id.

export function useId(defaultId?: string): string

Offers an object ref for a given callback ref or an object ref. Especially helfpul when passing forwarded refs (created using React.forwardRef) to React Aria hooks.

more
less

@param — The original ref intended to be used.

@returns — An object ref that updates the given ref.

@see — ://react.dev/reference/react/forwardRef

export function useObjectRef<T>(ref?: ((instance: T | null) => (() => void) | void) | MutableRefObject<T | null> | null): MutableRefObject<T | null>

A RouterProvider accepts a navigate function from a framework or client side router, and provides it to all nested React Aria links to enable client side navigation.

export function RouterProvider(props: RouterProviderProps): Element
Unexported symbols referenced here
interface RouterProviderProps {
navigate: (path: import("@react-types/shared").Href, routerOptions: import("@react-types/shared").RouterOptions | undefined) => void;
useHref?: (href: import("@react-types/shared").Href) => string;
children: ReactNode;
}
Referenced by

VisuallyHidden hides its children visually, while keeping content visible to screen readers.

export function VisuallyHidden(props: VisuallyHiddenProps): Element

Provides props for an element that hides its children visually but keeps content visible to assistive technology.

export function useVisuallyHidden(props?: VisuallyHiddenProps): VisuallyHiddenAria
export interface AriaAutocompleteProps<T> extends AutocompleteProps {

An optional filter function used to determine if a option should be included in the autocomplete list. Include this if the items you are providing to your wrapped collection aren't filtered by default.

filter?: (textValue: string, inputValue: string, node: import("@react-types/shared").Node<T>) => boolean;

Whether or not to focus the first item in the collection after a filter is performed. Note this is only applicable if virtual focus behavior is not turned off via disableVirtualFocus.

more
less

@default — false

disableAutoFocusFirst?: boolean;

Whether the autocomplete should disable virtual focus, instead making the wrapped collection directly tabbable.

more
less

@default — false

disableVirtualFocus?: boolean;
}
Referenced by
export interface AriaAutocompleteOptions<T> extends Omit<AriaAutocompleteProps<T>, "children"> {

The ref for the wrapped collection element.

inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>;

The ref for the wrapped collection element.

collectionRef: import("@react-types/shared").RefObject<HTMLElement | null>;
}
Referenced by
export interface AutocompleteAria<T> {

Props for the autocomplete input element. These should be passed to the input's aria hooks (e.g. useTextField/useSearchField/etc) respectively.

inputProps: InputProps;

Props for the collection, to be passed to collection's respective aria hook (e.g. useMenu).

collectionProps: CollectionOptions;

Ref to attach to the wrapped collection.

collectionRef: import("@react-types/shared").RefObject<HTMLElement | null>;

A filter function that returns if the provided collection node should be filtered out of the collection.

filter?: (nodeTextValue: string, node: import("@react-types/shared").Node<T>) => boolean;
}
Referenced by
export interface CollectionOptions extends import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Whether the collection items should use virtual focus instead of being focused directly.

shouldUseVirtualFocus: boolean;

Whether typeahead is disabled.

disallowTypeAhead: boolean;
}
Referenced by
export interface InputProps<T = import("@react-types/shared").FocusableElement> extends import("@react-types/shared").DOMProps, import("@react-types/shared").FocusEvents<T>, import("@react-types/shared").KeyboardEvents, Pick<import("@react-types/shared").ValueBase<string>, "onChange" | "value">, Pick<AriaTextFieldProps, "enterKeyHint" | "aria-controls" | "aria-autocomplete" | "aria-activedescendant" | "spellCheck" | "autoCorrect" | "autoComplete"> {}
Referenced by
export interface CollectionProps<T> extends CachedChildrenOptions<T> {}
Referenced by
Unexported symbols referenced here
interface CachedChildrenOptions<T> {

Item objects in the collection.

items?: Iterable<T>;

The contents of the collection.

children?: ReactNode | ((item: T) => ReactNode);

Values that should invalidate the item cache when using dynamic collections.

dependencies?: readonly any[];

A scope to prepend to all child item ids to ensure they are unique.

idScope?: import("@react-types/shared").Key;

Whether to add id and value props to all child items.

addIdAndValue?: boolean;
}
Referenced by
export interface CollectionBuilderProps<C extends BaseCollection<any>> {
content: ReactNode;
children: (collection: C) => ReactNode;
createCollection?: () => C;
}
Referenced by
export interface AriaBreadcrumbItemProps extends BreadcrumbItemProps, import("@react-types/shared").DOMProps {

The HTML element used to render the breadcrumb link, e.g. 'a', or 'span'.

more
less

@default — 'a'

elementType?: string;
}
Referenced by
export interface BreadcrumbItemAria {

Props for the breadcrumb item link element.

itemProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface BreadcrumbItemProps extends AriaLinkProps, import("@react-types/shared").LinkDOMProps {

Whether the breadcrumb item represents the current page.

isCurrent?: boolean;

The type of current location the breadcrumb item represents, if isCurrent is true.

more
less

@default — 'page'

'aria-current'?: "page" | "step" | "location" | "date" | "time" | boolean | "true" | "false";

Whether the breadcrumb item is disabled.

isDisabled?: boolean;

The contents of the breadcrumb item.

children: ReactNode;
}
Referenced by
export interface AriaBreadcrumbsProps extends import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface BreadcrumbsAria {

Props for the breadcrumbs navigation element.

navProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaButtonOptions<E extends ElementType> extends Omit<AriaButtonProps<E>, "children"> {}
Referenced by
export interface ButtonAria<T> {

Props for the button element.

buttonProps: T;

Whether the button is currently pressed.

isPressed: boolean;
}
Referenced by
export interface ButtonProps extends import("@react-types/shared").PressEvents, import("@react-types/shared").FocusableProps {

Whether the button is disabled.

isDisabled?: boolean;

The content to display in the button.

children?: ReactNode;
}
Referenced by
export interface LinkButtonProps<T extends ElementType = "button"> extends AriaButtonElementTypeProps<T> {

A URL to link to if elementType="a".

href?: string;

The target window for the link.

target?: string;

The relationship between the linked resource and the current page. See MDN.

rel?: string;
}
Referenced by
Unexported symbols referenced here
interface AriaButtonElementTypeProps<T extends ElementType = "button"> {

The HTML element or React element used to render the button, e.g. 'div', 'a', or RouterLink.

more
less

@default — 'button'

elementType?: T | JSXElementConstructor<any>;
}
Referenced by
export interface AriaBaseButtonProps extends import("@react-types/shared").FocusableDOMProps, import("@react-types/shared").AriaLabelingProps {

Indicates whether the element is disabled to users of assistive technology.

'aria-disabled'?: boolean | "true" | "false";

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

'aria-expanded'?: boolean | "true" | "false";

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

'aria-haspopup'?: boolean | "menu" | "listbox" | "tree" | "grid" | "dialog" | "true" | "false";

Identifies the element (or elements) whose contents or presence are controlled by the current element.

'aria-controls'?: string;

Indicates the current "pressed" state of toggle buttons.

'aria-pressed'?: boolean | "true" | "false" | "mixed";

Indicates whether this element represents the current item within a container or set of related elements.

'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time";

The behavior of the button when used in an HTML form.

more
less

@default — 'button'

type?: "button" | "submit" | "reset";

Whether to prevent focus from moving to the button when pressing it.

more
less

Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control.

preventFocusOnPress?: boolean;

The <form> element to associate the button with. The value of this attribute must be the id of a <form> in the same document. See MDN.

form?: string;

The URL that processes the information submitted by the button. Overrides the action attribute of the button's form owner.

formAction?: ButtonHTMLAttributes<HTMLButtonElement>["formAction"];

Indicates how to encode the form data that is submitted.

formEncType?: string;

Indicates the HTTP method used to submit the form.

formMethod?: string;

Indicates that the form is not to be validated when it is submitted.

formNoValidate?: boolean;

Overrides the target attribute of the button's form owner.

formTarget?: string;

Submitted as a pair with the button's value as part of the form data.

name?: string;

The value associated with the button's name when it's submitted with the form data.

value?: string;
}
Referenced by
export interface AriaToggleButtonProps<T extends ElementType = "button"> extends ToggleButtonProps, Omit<AriaBaseButtonProps, "aria-current" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "type">, AriaButtonElementTypeProps<T> {}
Referenced by
export interface AriaToggleButtonOptions<E extends ElementType> extends Omit<AriaToggleButtonProps<E>, "children"> {}
Referenced by
export interface ToggleButtonAria<T> extends ButtonAria<T> {

Whether the button is selected.

isSelected: boolean;

Whether the button is disabled.

isDisabled: boolean;
}
Referenced by
export interface ToggleButtonProps extends ButtonProps {

Whether the element should be selected (controlled).

isSelected?: boolean;

Whether the element should be selected (uncontrolled).

defaultSelected?: boolean;

Handler that is called when the element's selection state changes.

onChange?: (isSelected: boolean) => void;
}
Referenced by
export interface AriaToggleButtonGroupProps extends import("react-stately").ToggleGroupProps, import("@react-types/shared").AriaLabelingProps {

The orientation of the the toggle button group.

more
less

@default — 'horizontal'

orientation?: import("@react-types/shared").Orientation;
}
Referenced by
export interface ToggleButtonGroupAria {

Props for the toggle button group container.

groupProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaToggleButtonGroupItemProps<E extends ElementType = "button"> extends Omit<AriaToggleButtonProps<E>, "id" | "isSelected" | "defaultSelected" | "onChange"> {

An identifier for the item in the selectedKeys of a ToggleButtonGroup.

id: import("@react-types/shared").Key;
}
Referenced by
export interface AriaToggleButtonGroupItemOptions<E extends ElementType> extends Omit<AriaToggleButtonGroupItemProps<E>, "children"> {}
Referenced by
export interface AriaCalendarCellProps {

The date that this cell represents.

date: CalendarDate;

Whether the cell is disabled. By default, this is determined by the Calendar's minValue, maxValue, and isDisabled props.

isDisabled?: boolean;

Whether the cell is outside of the current month.

isOutsideMonth?: boolean;
}
Referenced by
export interface CalendarCellAria {

Props for the grid cell element (e.g. <td>).

cellProps: import("@react-types/shared").DOMAttributes;

Props for the button element within the cell.

buttonProps: import("@react-types/shared").DOMAttributes;

Whether the cell is currently being pressed.

isPressed: boolean;

Whether the cell is selected.

isSelected: boolean;

Whether the cell is focused.

isFocused: boolean;

Whether the cell is disabled, according to the calendar's minValue, maxValue, and isDisabled props. Disabled dates are not focusable, and cannot be selected by the user. They are typically displayed with a dimmed appearance.

isDisabled: boolean;

Whether the cell is unavailable, according to the calendar's isDateUnavailable prop. Unavailable dates remain focusable, but cannot be selected by the user. They should be displayed with a visual affordance to indicate they are unavailable, such as a different color or a strikethrough.

more
less

Note that because they are focusable, unavailable dates must meet a 4.5:1 color contrast ratio, as defined by WCAG.

isUnavailable: boolean;

Whether the cell is outside the visible range of the calendar. For example, dates before the first day of a month in the same week.

isOutsideVisibleRange: boolean;

Whether the cell is part of an invalid selection.

isInvalid: boolean;

The day number formatted according to the current locale.

formattedDate: string;
}
Referenced by
export interface AriaCalendarGridProps {

The first date displayed in the calendar grid. Defaults to the first visible date in the calendar. Override this to display multiple date grids in a calendar.

startDate?: CalendarDate;

The last date displayed in the calendar grid. Defaults to the last visible date in the calendar. Override this to display multiple date grids in a calendar.

endDate?: CalendarDate;

The style of weekday names to display in the calendar grid header, e.g. single letter, abbreviation, or full day name.

more
less

@default — 'narrow'

weekdayStyle?: "narrow" | "short" | "long";

The day that starts the week.

firstDayOfWeek?: "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat";
}
Referenced by
export interface CalendarGridAria {

Props for the date grid element (e.g. <table>).

gridProps: import("@react-types/shared").DOMAttributes;

Props for the grid header element (e.g. <thead>).

headerProps: import("@react-types/shared").DOMAttributes;

A list of week day abbreviations formatted for the current locale, typically used in column headers.

weekDays: string[];

The number of weeks in the month.

weeksInMonth: number;
}
Referenced by
export interface AriaCalendarProps<T extends import("react-stately").DateValue, M extends import("react-stately").CalendarSelectionMode = "single"> extends import("react-stately").CalendarProps<T, M>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface AriaRangeCalendarProps<T extends import("react-stately").DateValue> extends import("react-stately").RangeCalendarProps<T>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Controls the behavior when a pointer is released outside the calendar or a blur occurs mid selection:

more
less
  • clear: clear the currently selected range of dates.
  • reset: reset the selection to the previously selected range of dates.
  • select: select the currently hovered range of dates.

@default — 'select'

commitBehavior?: "clear" | "reset" | "select";
}
Referenced by
export interface CalendarAria {

Props for the calendar grouping element.

calendarProps: import("@react-types/shared").DOMAttributes;

Props for the next button.

nextButtonProps: AriaButtonProps;

Props for the previous button.

prevButtonProps: AriaButtonProps;

Props for the error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;

A description of the visible date range, for use in the calendar title.

title: string;
}
Referenced by
export interface CalendarMonthPickerAria {
'aria-label': string;
value: import("@react-types/shared").Key;
onChange: (key: import("@react-types/shared").Key | null) => void;
}
Referenced by
export interface CalendarMonthPickerItem {
id: number;
date: CalendarDate;
formatted: string;
}
Referenced by
export interface CalendarMonthPickerProps {

The format of the month.

format?: "numeric" | "2-digit" | "long" | "short" | "narrow";
}
Referenced by
export interface CalendarYearPickerAria {
'aria-label': string;
value: import("@react-types/shared").Key;
onChange: (key: import("@react-types/shared").Key | null) => void;
}
Referenced by
export interface CalendarYearPickerItem {
id: number;
date: CalendarDate;
formatted: string;
}
Referenced by
export interface CalendarYearPickerProps {

The number of years to display.

more
less

@default — 20

visibleYears?: number;

The format to display.

format?: CalendarYearPickerFormatOptions;
}
Referenced by
Unexported symbols referenced here
interface CalendarYearPickerFormatOptions {
year?: "numeric" | "2-digit";
era?: "long" | "short" | "narrow";
}
Referenced by
export interface CalendarHeadingProps {

The number of months from the start of the visible range to display.

more
less

@default — 0

offset?: DateDuration;

The format of the month heading.

format?: CalendarHeadingFormatOptions;
}
Referenced by
Unexported symbols referenced here
interface CalendarHeadingFormatOptions {
day?: "numeric" | "2-digit";
month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
year?: "numeric" | "2-digit";
era?: "long" | "short" | "narrow";
}
Referenced by
export interface AriaCheckboxGroupItemProps extends Omit<AriaCheckboxProps, "isSelected" | "defaultSelected"> {
value: string;
}
Referenced by
export interface CheckboxGroupAria extends import("@react-types/shared").ValidationResult {

Props for the checkbox group wrapper element.

groupProps: import("@react-types/shared").DOMAttributes;

Props for the checkbox group's visible label (if any).

labelProps: import("@react-types/shared").DOMAttributes;

Props for the checkbox group description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the checkbox group error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaCheckboxProps extends CheckboxProps, import("@react-types/shared").InputDOMProps, AriaToggleProps {}
Referenced by
Unexported symbols referenced here
interface AriaToggleProps extends import("react-stately").ToggleProps, import("@react-types/shared").FocusableDOMProps, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").AriaValidationProps, import("@react-types/shared").InputDOMProps, import("@react-types/shared").PressEvents {

Identifies the element (or elements) whose contents or presence are controlled by the current element.

'aria-controls'?: string;
}
Referenced by
export interface CheckboxAria extends import("@react-types/shared").ValidationResult {

Props for the label wrapper element.

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the checkbox description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributesWithRef<HTMLElement>;

Props for the checkbox error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributesWithRef<HTMLElement>;

Whether the checkbox is selected.

isSelected: boolean;

Whether the checkbox is in a pressed state.

isPressed: boolean;

Whether the checkbox is disabled.

isDisabled: boolean;

Whether the checkbox is read only.

isReadOnly: boolean;
}
Referenced by
export interface CheckboxProps extends import("react-stately").ToggleProps {

Indeterminism is presentational only. The indeterminate visual representation remains regardless of user interaction.

isIndeterminate?: boolean;
}
Referenced by
export interface AriaColorAreaOptions extends AriaColorAreaProps {

A ref to the input that represents the x axis of the color area.

inputXRef: import("@react-types/shared").RefObject<HTMLInputElement | null>;

A ref to the input that represents the y axis of the color area.

inputYRef: import("@react-types/shared").RefObject<HTMLInputElement | null>;

A ref to the color area containing element.

containerRef: import("@react-types/shared").RefObject<Element | null>;
}
Referenced by
export interface AriaColorAreaProps extends import("react-stately").ColorAreaProps, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

The name of the x channel input element, used when submitting an HTML form. See MDN.

xName?: string;

The name of the y channel input element, used when submitting an HTML form. See MDN.

yName?: string;

The <form> element to associate the ColorArea with. The value of this attribute must be the id of a <form> in the same document. See MDN.

form?: string;
}
Referenced by
export interface ColorAreaAria {

Props for the color area container element.

colorAreaProps: import("@react-types/shared").DOMAttributes;

Props for the thumb element.

thumbProps: import("@react-types/shared").DOMAttributes;

Props for the visually hidden horizontal range input element.

xInputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the visually hidden vertical range input element.

yInputProps: InputHTMLAttributes<HTMLInputElement>;
}
Referenced by
export interface AriaColorChannelFieldProps extends import("react-stately").ColorChannelFieldProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface ColorChannelFieldAria extends NumberFieldAria {}
Referenced by
export interface AriaColorFieldProps extends import("react-stately").ColorFieldProps, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").FocusableDOMProps, Omit<import("@react-types/shared").TextInputDOMProps, "minLength" | "maxLength" | "pattern" | "type" | "inputMode" | "autoComplete" | "autoCorrect" | "spellCheck">, import("@react-types/shared").AriaValidationProps {

Enables or disables changing the value with scroll.

isWheelDisabled?: boolean;
}
Referenced by
export interface ColorFieldAria extends import("@react-types/shared").ValidationResult {

Props for the label element.

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the text field's description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the text field's error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaColorSliderOptions extends AriaColorSliderProps {

A ref for the track element.

trackRef: import("@react-types/shared").RefObject<Element | null>;

A ref for the input element.

inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>;
}
Referenced by
export interface ColorSliderAria {

Props for the label element.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the track element.

trackProps: import("@react-types/shared").DOMAttributes;

Props for the thumb element.

thumbProps: import("@react-types/shared").DOMAttributes;

Props for the visually hidden range input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the output element, displaying the value of the color slider.

outputProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaColorSwatchProps extends import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").DOMProps {

The color value to display in the swatch.

color?: string | import("react-stately").Color;

A localized accessible name for the color. By default, a description is generated from the color value, but this can be overridden if you have a more specific color name (e.g. Pantone colors).

colorName?: string;
}
Referenced by
export interface ColorSwatchAria {

Props for the color swatch element.

colorSwatchProps: HTMLAttributes<HTMLElement>;

The parsed color value of the swatch.

color: import("react-stately").Color;
}
Referenced by
export interface AriaColorWheelOptions extends AriaColorWheelProps {

The outer radius of the color wheel.

outerRadius: number;

The inner radius of the color wheel.

innerRadius: number;
}
Referenced by
export interface ColorWheelAria {

Props for the track element.

trackProps: import("@react-types/shared").DOMAttributes;

Props for the thumb element.

thumbProps: import("@react-types/shared").DOMAttributes;

Props for the visually hidden range input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;
}
Referenced by
export interface AriaComboBoxOptions<T, M extends import("react-stately").SelectionMode = "single"> extends Omit<AriaComboBoxProps<T, M>, "children"> {

The ref for the input element.

inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>;

The ref for the list box popover.

popoverRef: import("@react-types/shared").RefObject<Element | null>;

The ref for the list box.

listBoxRef: import("@react-types/shared").RefObject<HTMLElement | null>;

The ref for the optional list box popup trigger button.

buttonRef?: import("@react-types/shared").RefObject<Element | null>;

An optional keyboard delegate implementation, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;

A delegate object that provides layout information for items in the collection. By default this uses the DOM, but this can be overridden to implement things like virtualized scrolling.

layoutDelegate?: import("@react-types/shared").LayoutDelegate;
}
Referenced by
export interface AriaComboBoxProps<T, M extends import("react-stately").SelectionMode = "single"> extends import("react-stately").ComboBoxProps<T, M>, import("@react-types/shared").DOMProps, import("@react-types/shared").InputDOMProps, import("@react-types/shared").AriaLabelingProps {

Whether keyboard navigation is circular.

shouldFocusWrap?: boolean;
}
Referenced by
export interface ComboBoxAria<T> extends import("@react-types/shared").ValidationResult {

Props for the label element.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the combo box input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the list box, to be passed to useListBox.

listBoxProps: AriaListBoxOptions<T>;

Props for the optional trigger button, to be passed to useButton.

buttonProps: AriaButtonProps;

Props for the element representing the selected value.

valueProps: import("@react-types/shared").DOMAttributes;

Props for the combo box description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the combo box error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaDateFieldProps<T extends import("react-stately").DateValue> extends import("react-stately").DateFieldProps<T>, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").DOMProps, import("@react-types/shared").InputDOMProps {

Describes the type of autocomplete functionality the input should provide if any. See MDN.

autoComplete?: string;
}
Referenced by
export interface AriaDateFieldOptions<T extends import("react-stately").DateValue> extends Omit<AriaDateFieldProps<T>, "value" | "defaultValue" | "onChange" | "minValue" | "maxValue" | "placeholderValue" | "validate"> {

A ref for the hidden input element for HTML form submission.

inputRef?: import("@react-types/shared").RefObject<HTMLInputElement | null>;
}
Referenced by
export interface AriaTimeFieldOptions<T extends import("react-stately").TimeValue> extends AriaTimeFieldProps<T> {

A ref for the hidden input element for HTML form submission.

inputRef?: import("@react-types/shared").RefObject<HTMLInputElement | null>;
}
Referenced by
export interface DateFieldAria extends import("@react-types/shared").ValidationResult {

Props for the field's visible label element, if any.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the field grouping element.

fieldProps: import("@react-types/shared").GroupDOMAttributes;

Props for the hidden input element for HTML form submission.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaDatePickerProps<T extends import("react-stately").DateValue> extends import("react-stately").DatePickerProps<T>, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").InputDOMProps, import("@react-types/shared").DOMProps, import("@react-types/shared").InputDOMProps {

Describes the type of autocomplete functionality the input should provide if any. See MDN.

autoComplete?: string;
}
Referenced by
export interface DatePickerAria extends import("@react-types/shared").ValidationResult {

Props for the date picker's visible label element, if any.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the grouping element containing the date field and button.

groupProps: import("@react-types/shared").GroupDOMAttributes;

Props for the date field.

fieldProps: AriaDatePickerProps<import("react-stately").DateValue>;

Props for the popover trigger button.

buttonProps: AriaButtonProps;

Props for the description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;

Props for the popover dialog.

dialogProps: AriaDialogProps;

Props for the calendar within the popover dialog.

calendarProps: import("react-stately").CalendarProps<import("react-stately").DateValue>;
}
Referenced by
export interface AriaDateRangePickerProps<T extends import("react-stately").DateValue> extends import("react-stately").DateRangePickerProps<T>, import("@react-types/shared").AriaLabelingProps, Omit<import("@react-types/shared").InputDOMProps, "name">, import("@react-types/shared").DOMProps {}
Referenced by
export interface DateRangePickerAria extends import("@react-types/shared").ValidationResult {

Props for the date range picker's visible label element, if any.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the grouping element containing the date fields and button.

groupProps: import("@react-types/shared").GroupDOMAttributes;

Props for the start date field.

startFieldProps: AriaDatePickerProps<import("react-stately").DateValue>;

Props for the end date field.

endFieldProps: AriaDatePickerProps<import("react-stately").DateValue>;

Props for the popover trigger button.

buttonProps: AriaButtonProps;

Props for the description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;

Props for the popover dialog.

dialogProps: AriaDialogProps;

Props for the range calendar within the popover dialog.

calendarProps: import("react-stately").RangeCalendarProps<import("react-stately").DateValue>;
}
Referenced by
export interface DateSegmentAria {

Props for the segment element.

segmentProps: HTMLAttributes<HTMLDivElement>;
}
Referenced by
export interface AriaDialogProps extends import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

The accessibility role for the dialog.

more
less

@default — 'dialog'

role?: "dialog" | "alertdialog";
}
Referenced by
export interface DialogAria {

Props for the dialog container element.

dialogProps: import("@react-types/shared").DOMAttributes;

Props for the dialog title element.

titleProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface DisclosureAria {

Props for the disclosure button.

buttonProps: AriaButtonProps;

Props for the disclosure panel.

panelProps: HTMLAttributes<HTMLElement>;
}
Referenced by
export interface AriaDisclosureProps {

Whether the disclosure is disabled.

isDisabled?: boolean;

Handler that is called when the disclosure's expanded state changes.

onExpandedChange?: (isExpanded: boolean) => void;

Whether the disclosure is expanded (controlled).

isExpanded?: boolean;

Whether the disclosure is expanded by default (uncontrolled).

defaultExpanded?: boolean;
}
Referenced by
export interface AriaFocusRingProps {

Whether to show the focus ring when something inside the container element has focus (true), or only if the container itself has focus (false).

more
less

@default — 'false'

within?: boolean;

Whether the element is a text input.

isTextInput?: boolean;

Whether the element will be auto focused.

autoFocus?: boolean;
}
Referenced by
export interface FocusRingAria {

Whether the element is currently focused.

isFocused: boolean;

Whether keyboard focus should be visible.

isFocusVisible: boolean;

Props to apply to the container element with the focus ring.

focusProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface FocusableAria {

Props for the focusable element.

focusableProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface FocusableOptions<T = import("@react-types/shared").FocusableElement> extends import("@react-types/shared").FocusableProps<T>, import("@react-types/shared").FocusableDOMProps {

Whether focus should be disabled.

isDisabled?: boolean;
}
Referenced by
export interface FocusableProps extends FocusableOptions {
children: ReactElement<import("@react-types/shared").DOMAttributes, string>;
}
Referenced by
export interface FocusManager {

Moves focus to the next focusable or tabbable element in the focus scope.

focusNext(opts?: FocusManagerOptions): import("@react-types/shared").FocusableElement | null;

Moves focus to the previous focusable or tabbable element in the focus scope.

focusPrevious(opts?: FocusManagerOptions): import("@react-types/shared").FocusableElement | null;

Moves focus to the first focusable or tabbable element in the focus scope.

focusFirst(opts?: FocusManagerOptions): import("@react-types/shared").FocusableElement | null;

Moves focus to the last focusable or tabbable element in the focus scope.

focusLast(opts?: FocusManagerOptions): import("@react-types/shared").FocusableElement | null;
}
Referenced by
export interface FocusManagerOptions {

The element to start searching from. The currently focused element by default.

from?: Element;

Whether to only include tabbable elements, or all focusable elements.

tabbable?: boolean;

Whether focus should wrap around when it reaches the end of the scope.

wrap?: boolean;

A callback that determines whether the given element is focused.

accept?: (node: Element) => boolean;
}
Referenced by
export interface FocusScopeProps {

The contents of the focus scope.

children: ReactNode;

Whether to contain focus inside the scope, so users cannot move focus outside, for example in a modal dialog.

contain?: boolean;

Whether to restore focus back to the element that was focused when the focus scope mounted, after the focus scope unmounts.

restoreFocus?: boolean;

Whether to auto focus the first focusable element in the focus scope on mount.

autoFocus?: boolean;
}
Referenced by
export interface FocusRingProps {

Child element to apply CSS classes to.

children: ReactElement;

CSS class to apply when the element is focused.

focusClass?: string;

CSS class to apply when the element has keyboard focus.

focusRingClass?: string;

Whether to show the focus ring when something inside the container element has focus (true), or only if the container itself has focus (false).

more
less

@default — false

within?: boolean;

Whether the element is a text input.

isTextInput?: boolean;

Whether the element will be auto focused.

autoFocus?: boolean;
}
Referenced by
export {
DateFormatter,
} from "unknown"
export interface DateFormatterOptions extends DateTimeFormatOptions {
calendar?: string;
}
Referenced by
export interface Filter {

Returns whether a string starts with a given substring.

startsWith: (string: string, substring: string) => boolean;

Returns whether a string ends with a given substring.

endsWith: (string: string, substring: string) => boolean;

Returns whether a string contains a given substring.

contains: (string: string, substring: string) => boolean;
}
Referenced by
export interface I18nProviderProps {

Contents that should have the locale applied.

children: ReactNode;

The locale to apply to the children.

locale?: string;
}
Referenced by
export interface Locale {

The BCP47 language code for the locale.

locale: string;

The writing direction for the locale.

direction: import("@react-types/shared").Direction;
}
Referenced by
export {
LocalizedStringFormatter,
} from "unknown"
export interface ClipboardProps {

A function that returns the items to copy.

getItems?: (details: {
action: "cut" | "copy";
}) => import("@react-types/shared").DragItem[];

Handler that is called when the user triggers a copy interaction.

onCopy?: () => void;

Handler that is called when the user triggers a cut interaction.

onCut?: () => void;

Handler that is called when the user triggers a paste interaction.

onPaste?: (items: import("@react-types/shared").DropItem[]) => void;

Whether the clipboard is disabled.

isDisabled?: boolean;
}
Referenced by
export interface ClipboardResult {

Props for the element that will handle clipboard events.

clipboardProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface DraggableCollectionOptions {}
Referenced by
export interface DraggableItemProps {

The key of the draggable item within the collection.

key: import("@react-types/shared").Key;

Whether the item has an explicit focusable drag affordance to initiate accessible drag and drop mode. If true, the dragProps will omit these event handlers, and they will be applied to dragButtonProps instead.

hasDragButton?: boolean;

Whether the item has a primary action (e.g. Enter key or long press) that would conflict with initiating accessible drag and drop. If true, the Alt key must be held to start dragging with a keyboard, and long press is disabled until selection mode is entered. This should be passed from the associated collection item hook (e.g. useOption, useGridListItem, etc.).

hasAction?: boolean;
}
Referenced by
export interface DraggableItemResult {

Props for the draggable item.

dragProps: HTMLAttributes<HTMLElement>;

Props for the explicit drag button affordance, if any.

dragButtonProps: AriaButtonProps;
}
Referenced by
export interface DragOptions {

Handler that is called when a drag operation is started.

onDragStart?: (e: import("@react-types/shared").DragStartEvent) => void;

Handler that is called when the drag is moved.

onDragMove?: (e: import("@react-types/shared").DragMoveEvent) => void;

Handler that is called when the drag operation is ended, either as a result of a drop or a cancellation.

onDragEnd?: (e: import("@react-types/shared").DragEndEvent) => void;

A function that returns the items being dragged.

getItems: () => import("@react-types/shared").DragItem[];

The ref of the element that will be rendered as the drag preview while dragging.

preview?: import("@react-types/shared").RefObject<import("@react-types/shared").DragPreviewRenderer | null>;

Function that returns the drop operations that are allowed for the dragged items. If not provided, all drop operations are allowed.

getAllowedDropOperations?: () => import("@react-types/shared").DropOperation[];

Whether the item has an explicit focusable drag affordance to initiate accessible drag and drop mode. If true, the dragProps will omit these event handlers, and they will be applied to dragButtonProps instead.

hasDragButton?: boolean;

Whether the drag operation is disabled. If true, the element will not be draggable.

isDisabled?: boolean;
}
Referenced by
export interface DragResult {

Props for the draggable element.

dragProps: HTMLAttributes<HTMLElement>;

Props for the explicit drag button affordance, if any.

dragButtonProps: AriaButtonProps;

Whether the element is currently being dragged.

isDragging: boolean;
}
Referenced by
export interface DragPreviewProps {

A render function which returns a preview element, or an object containing the element and a custom offset. If an object is returned, the provided x and y values will be used as the drag preview offset instead of the default calculation.

children: (items: import("@react-types/shared").DragItem[]) => Element | {
element: Element;
x: number;
y: number;
} | null;
}
Referenced by
export interface DropIndicatorAria {

Props for the drop indicator element.

dropIndicatorProps: HTMLAttributes<HTMLElement>;

Whether the drop indicator is currently the active drop target.

isDropTarget: boolean;

Whether the drop indicator is hidden, both visually and from assistive technology. Use this to determine whether to omit the element from the DOM entirely.

isHidden: boolean;
}
Referenced by
export interface DropIndicatorProps {

The drop target that the drop indicator represents.

target: import("@react-types/shared").DropTarget;

The ref to the activate button.

activateButtonRef?: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>;
}
Referenced by
export interface DropOptions {

A ref for the droppable element.

ref: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>;

A function returning the drop operation to be performed when items matching the given types are dropped on the drop target.

getDropOperation?: (types: import("@react-types/shared").DragTypes, allowedOperations: import("@react-types/shared").DropOperation[]) => import("@react-types/shared").DropOperation;

A function that returns the drop operation for a specific point within the target.

getDropOperationForPoint?: (types: import("@react-types/shared").DragTypes, allowedOperations: import("@react-types/shared").DropOperation[], x: number, y: number) => import("@react-types/shared").DropOperation;

Handler that is called when a valid drag enters the drop target.

onDropEnter?: (e: import("@react-types/shared").DropEnterEvent) => void;

Handler that is called when a valid drag is moved within the drop target.

onDropMove?: (e: import("@react-types/shared").DropMoveEvent) => void;

Handler that is called after a valid drag is held over the drop target for a period of time. This typically opens the item so that the user can drop within it.

onDropActivate?: (e: import("@react-types/shared").DropActivateEvent) => void;

Handler that is called when a valid drag exits the drop target.

onDropExit?: (e: import("@react-types/shared").DropExitEvent) => void;

Handler that is called when a valid drag is dropped on the drop target.

onDrop?: (e: import("@react-types/shared").DropEvent) => void;

Whether the item has an explicit focusable drop affordance to initiate accessible drag and drop mode. If true, the dropProps will omit these event handlers, and they will be applied to dropButtonProps instead.

hasDropButton?: boolean;

Whether the drop target is disabled. If true, the drop target will not accept any drops.

isDisabled?: boolean;
}
Referenced by
export interface DropResult {

Props for the droppable element.

dropProps: import("@react-types/shared").DOMAttributes;

Whether the drop target is currently focused or hovered.

isDropTarget: boolean;

Props for the explicit drop button affordance, if any.

dropButtonProps?: AriaButtonProps;
}
Referenced by
export interface DroppableCollectionOptions extends import("@react-types/shared").DroppableCollectionProps {

A delegate object that implements behavior for keyboard focus movement.

keyboardDelegate: import("@react-types/shared").KeyboardDelegate;

A delegate object that provides drop targets for pointer coordinates within the collection.

dropTargetDelegate: import("@react-types/shared").DropTargetDelegate;

A custom keyboard event handler for drop targets.

onKeyDown?: (e: KeyboardEvent) => void;
}
Referenced by
export interface DroppableCollectionResult {

Props for the collection element.

collectionProps: HTMLAttributes<HTMLElement>;
}
Referenced by
export interface DroppableItemOptions {

The drop target represented by the item.

target: import("@react-types/shared").DropTarget;

The ref to the activate button.

activateButtonRef?: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>;
}
Referenced by
export interface DroppableItemResult {

Props for the droppable element.

dropProps: HTMLAttributes<HTMLElement>;

Whether the item is currently the active drop target.

isDropTarget: boolean;
}
Referenced by
export interface FocusProps<Target = import("@react-types/shared").FocusableElement> extends import("@react-types/shared").FocusEvents<Target> {

Whether the focus events should be disabled.

isDisabled?: boolean;
}
Referenced by
export interface FocusResult<Target = import("@react-types/shared").FocusableElement> {

Props to spread onto the target element.

focusProps: import("@react-types/shared").DOMAttributes<Target>;
}
Referenced by
export interface FocusVisibleProps {

Whether the element is a text input.

isTextInput?: boolean;

Whether the element will be auto focused.

autoFocus?: boolean;
}
Referenced by
export interface FocusVisibleResult {

Whether keyboard focus is visible globally.

isFocusVisible: boolean;
}
Referenced by
export interface FocusWithinProps {

Whether the focus within events should be disabled.

isDisabled?: boolean;

Handler that is called when the target element or a descendant receives focus.

onFocusWithin?: (e: FocusEvent) => void;

Handler that is called when the target element and all descendants lose focus.

onBlurWithin?: (e: FocusEvent) => void;

Handler that is called when the the focus within state changes.

onFocusWithinChange?: (isFocusWithin: boolean) => void;
}
Referenced by
export interface FocusWithinResult {

Props to spread onto the target element.

focusWithinProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface HoverProps extends import("@react-types/shared").HoverEvents {

Whether the hover events should be disabled.

isDisabled?: boolean;
}
Referenced by
export interface HoverResult {

Props to spread on the target element.

hoverProps: import("@react-types/shared").DOMAttributes;
isHovered: boolean;
}
Referenced by
export interface InteractOutsideProps {
ref: import("@react-types/shared").RefObject<Element | null>;
onInteractOutside?: (e: PointerEvent) => void;
onInteractOutsideStart?: (e: PointerEvent) => void;

Whether the interact outside events should be disabled.

isDisabled?: boolean;
}
Referenced by
export interface KeyboardProps extends import("@react-types/shared").KeyboardEvents {

Whether the keyboard events should be disabled.

isDisabled?: boolean;
}
Referenced by
export interface KeyboardResult {

Props to spread onto the target element.

keyboardProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface LongPressProps {

Whether long press events should be disabled.

isDisabled?: boolean;

Handler that is called when a long press interaction starts.

onLongPressStart?: (e: import("@react-types/shared").LongPressEvent) => void;

Handler that is called when a long press interaction ends, either over the target or when the pointer leaves the target.

onLongPressEnd?: (e: import("@react-types/shared").LongPressEvent) => void;

Handler that is called when the threshold time is met while the press is over the target.

onLongPress?: (e: import("@react-types/shared").LongPressEvent) => void;

The amount of time in milliseconds to wait before triggering a long press.

more
less

@default — 500ms

threshold?: number;

A description for assistive techology users indicating that a long press action is available, e.g. "Long press to open menu".

accessibilityDescription?: string;
}
Referenced by
export interface LongPressResult {

Props to spread on the target element.

longPressProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface MoveResult {

Props to spread on the target element.

moveProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface PressHookProps extends PressProps {

A ref to the target element.

ref?: import("@react-types/shared").RefObject<Element | null>;
}
Referenced by
export interface PressProps extends import("@react-types/shared").PressEvents {

Whether the target is in a controlled press state (e.g. an overlay it triggers is open).

isPressed?: boolean;

Whether the press events should be disabled.

isDisabled?: boolean;

Whether the target should not receive focus on press.

preventFocusOnPress?: boolean;

Whether press events should be canceled when the pointer leaves the target while pressed. By default, this is false, which means if the pointer returns back over the target while still pressed, onPressStart will be fired again. If set to true, the press is canceled when the pointer leaves the target and onPressStart will not be fired if the pointer returns.

shouldCancelOnPointerExit?: boolean;

Whether text selection should be enabled on the pressable element.

allowTextSelectionOnPress?: boolean;
}
Referenced by
export interface PressResult {

Whether the target is currently pressed.

isPressed: boolean;

Props to spread on the target element.

pressProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface PressableProps extends PressProps {
children: ReactElement<import("@react-types/shared").DOMAttributes, string>;
}
Referenced by
export interface ScrollWheelProps extends import("@react-types/shared").ScrollEvents {

Whether the scroll listener should be disabled.

isDisabled?: boolean;
}
export interface AriaFieldProps extends LabelAriaProps, import("@react-types/shared").HelpTextProps, Omit<import("@react-types/shared").Validation<any>, "isRequired"> {}
Referenced by
export interface FieldAria extends LabelAria {

Props for the description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface LabelAria {

Props to apply to the label container element.

labelProps: import("@react-types/shared").DOMAttributes | LabelHTMLAttributes<HTMLLabelElement>;

Props to apply to the field container element being labeled.

fieldProps: import("@react-types/shared").AriaLabelingProps & import("@react-types/shared").DOMProps;
}
Referenced by
export interface LabelAriaProps extends import("@react-types/shared").LabelableProps, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

The HTML element used to render the label, e.g. 'label', or 'span'.

more
less

@default — 'label'

labelElementType?: ElementType;
}
Referenced by
export type AriaLandmarkRole = "main" | "region" | "search" | "navigation" | "form" | "banner" | "contentinfo" | "complementary"
Referenced by
export interface AriaLandmarkProps extends import("@react-types/shared").AriaLabelingProps {
focus?: (direction: "forward" | "backward") => void;
}
Referenced by
export interface LandmarkAria {
landmarkProps: import("@react-types/shared").DOMAttributes;
}
Referenced by

A LandmarkController allows programmatic navigation of landmarks.

export interface LandmarkController {

Moves focus to the next landmark.

focusNext(opts?: LandmarkControllerOptions): boolean;

Moves focus to the previous landmark.

focusPrevious(opts?: LandmarkControllerOptions): boolean;

Moves focus to the main landmark.

focusMain(): boolean;

Moves focus either forward or backward in the landmark sequence.

navigate(direction: "forward" | "backward", opts?: LandmarkControllerOptions): boolean;

Disposes the landmark controller. When no landmarks are registered, and no controllers are active, the landmark keyboard listeners are removed from the page.

dispose(): void;
}
export interface LandmarkControllerOptions {

The element from which to start navigating.

more
less

@default — document.activeElement

from?: import("@react-types/shared").FocusableElement;
}
Referenced by
export interface AriaLinkOptions extends AriaLinkProps {

Whether the link is disabled.

isDisabled?: boolean;

The HTML element used to render the link, e.g. 'a', or 'span'.

more
less

@default — 'a'

elementType?: string;
}
Referenced by
export interface LinkAria {

Props for the link element.

linkProps: import("@react-types/shared").DOMAttributes;

Whether the link is currently pressed.

isPressed: boolean;
}
Referenced by
export interface LinkProps extends import("@react-types/shared").PressEvents, import("@react-types/shared").FocusableProps {}
Referenced by
export interface AriaListBoxOptions<T> extends Omit<AriaListBoxProps<T>, "children"> {

Whether the listbox uses virtual scrolling.

isVirtualized?: boolean;

An optional keyboard delegate implementation for type to select, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;

A delegate object that provides layout information for items in the collection. By default this uses the DOM, but this can be overridden to implement things like virtualized scrolling.

layoutDelegate?: import("@react-types/shared").LayoutDelegate;

Whether the listbox items should use virtual focus instead of being focused directly.

shouldUseVirtualFocus?: boolean;

The behavior of links in the collection.

more
less
  • 'action': link behaves like onAction.
  • 'selection': link follows selection interactions (e.g. if URL drives selection).
  • 'override': links override all other interactions (link items are not selectable).

@default — 'override'

linkBehavior?: "action" | "selection" | "override";

The primary orientation of the items. Usually this is the direction that the collection scrolls.

more
less

@default — 'vertical'

orientation?: import("@react-types/shared").Orientation;
}
Referenced by
export interface AriaListBoxProps<T> extends AriaListBoxPropsBase<T> {

An optional visual label for the listbox.

label?: ReactNode;

How multiple selection should behave in the collection.

selectionBehavior?: import("@react-types/shared").SelectionBehavior;

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;

Whether options should be focused when the user hovers over them.

shouldFocusOnHover?: boolean;

Handler that is called when a user performs an action on an item. The exact user event depends on the collection's selectionBehavior prop and the interaction modality.

onAction?: (key: import("@react-types/shared").Key) => void;
}
Referenced by
export interface ListBoxAria {

Props for the listbox element.

listBoxProps: import("@react-types/shared").DOMAttributes;

Props for the listbox's visual label element (if any).

labelProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface ListBoxProps<T> extends import("@react-types/shared").CollectionBase<T>, import("@react-types/shared").MultipleSelection, import("@react-types/shared").FocusEvents {

Whether to auto focus the listbox or an option.

autoFocus?: boolean | import("@react-types/shared").FocusStrategy;

Whether focus should wrap around when the end/start is reached.

shouldFocusWrap?: boolean;
}
Referenced by
export interface AriaListBoxPropsBase<T> extends ListBoxProps<T>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Whether pressing the escape key should clear selection in the listbox or not.

more
less

Most experiences should not modify this option as it eliminates a keyboard user's ability to easily clear selection. Only use if the escape key is being handled externally or should not trigger selection clearing contextually.

@default — 'clearSelection'

escapeKeyBehavior?: "clearSelection" | "none";
}
Referenced by
export interface AriaListBoxSectionProps {

The heading for the section.

heading?: ReactNode;

An accessibility label for the section. Required if heading is not present.

'aria-label'?: string;
}
Referenced by
export interface ListBoxSectionAria {

Props for the wrapper list item.

itemProps: import("@react-types/shared").DOMAttributes;

Props for the heading element, if any.

headingProps: import("@react-types/shared").DOMAttributes;

Props for the group element.

groupProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaOptionProps {

Whether the option is disabled.

more
less

@deprecated —

isDisabled?: boolean;

Whether the option is selected.

more
less

@deprecated —

isSelected?: boolean;

A screen reader only label for the option.

'aria-label'?: string;

The unique key for the option.

key: import("@react-types/shared").Key;

Whether selection should occur on press up instead of press down.

more
less

@deprecated —

shouldSelectOnPressUp?: boolean;

Whether the option should be focused when the user hovers over it.

more
less

@deprecated —

shouldFocusOnHover?: boolean;

Whether the option is contained in a virtual scrolling listbox.

more
less

@deprecated —

isVirtualized?: boolean;

Whether the option should use virtual focus instead of being focused directly.

more
less

@deprecated —

shouldUseVirtualFocus?: boolean;
}
Referenced by
export interface OptionAria extends SelectableItemStates {

Props for the option element.

optionProps: import("@react-types/shared").DOMAttributes;

Props for the main text element inside the option.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the description text element inside the option, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Whether the option is currently focused.

isFocused: boolean;

Whether the option is keyboard focused.

isFocusVisible: boolean;
}
Referenced by
Unexported symbols referenced here
interface SelectableItemStates {

Whether the item is currently in a pressed state.

isPressed: boolean;

Whether the item is currently selected.

isSelected: boolean;

Whether the item is currently focused.

isFocused: boolean;

Whether the item is non-interactive, i.e. both selection and actions are disabled and the item may not be focused. Dependent on disabledKeys and disabledBehavior.

isDisabled: boolean;

Whether the item may be selected, dependent on selectionMode, disabledKeys, and disabledBehavior.

allowsSelection: boolean;

Whether the item has an action, dependent on onAction, disabledKeys, and disabledBehavior. It may also change depending on the current selection state of the list (e.g. when selection is primary). This can be used to enable or disable hover styles or other visual indications of interactivity.

hasAction: boolean;
}
Referenced by
export interface AriaGridListOptions<T> extends Omit<AriaGridListProps<T>, "children"> {

Whether the list uses virtual scrolling.

isVirtualized?: boolean;

Whether typeahead navigation is disabled.

more
less

@default — false

disallowTypeAhead?: boolean;

An optional keyboard delegate implementation for type to select, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;

A delegate object that provides layout information for items in the collection. By default this uses the DOM, but this can be overridden to implement things like virtualized scrolling.

layoutDelegate?: import("@react-types/shared").LayoutDelegate;

Whether focus should wrap around when the end/start is reached.

more
less

@default — false

shouldFocusWrap?: boolean;

The behavior of links in the collection.

more
less
  • 'action': link behaves like onAction.
  • 'selection': link follows selection interactions (e.g. if URL drives selection).
  • 'override': links override all other interactions (link items are not selectable).

@default — 'action'

linkBehavior?: "action" | "selection" | "override";

Which item in the collection to focus when tabbing into the collection. Overrides default roving tab index like behavior.

more
less

@private —

UNSTABLE_focusOnEntry?: "first" | "last";
}
Referenced by
export interface GridListProps<T> extends import("@react-types/shared").CollectionBase<T>, import("@react-types/shared").MultipleSelection {

Whether to auto focus the gridlist or an option.

autoFocus?: boolean | import("@react-types/shared").FocusStrategy;

Handler that is called when a user performs an action on an item. The exact user event depends on the collection's selectionBehavior prop and the interaction modality.

onAction?: (key: import("@react-types/shared").Key) => void;

Whether disabledKeys applies to all interactions, or only selection.

more
less

@default — 'all'

disabledBehavior?: import("@react-types/shared").DisabledBehavior;

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;
}
Referenced by
export interface AriaGridListProps<T> extends GridListProps<T>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Whether keyboard navigation to focusable elements within grid list items is via the left/right arrow keys or the tab key.

more
less

@default — 'arrow'

keyboardNavigationBehavior?: "arrow" | "tab";

Whether pressing the escape key should clear selection in the grid list or not.

more
less

Most experiences should not modify this option as it eliminates a keyboard user's ability to easily clear selection. Only use if the escape key is being handled externally or should not trigger selection clearing contextually.

@default — 'clearSelection'

escapeKeyBehavior?: "clearSelection" | "none";
}
Referenced by
export interface GridListAria {

Props for the grid element.

gridProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaGridListItemOptions {

An object representing the list item. Contains all the relevant information that makes up the list row.

node: import("@react-types/shared").Node<unknown>;

Whether the list row is contained in a virtual scroller.

isVirtualized?: boolean;

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;

Whether this item has children, even if not loaded yet.

hasChildItems?: boolean;
}
Referenced by
export interface GridListItemAria extends SelectableItemStates {

Props for the list row element.

rowProps: import("@react-types/shared").DOMAttributes;

Props for the grid cell element within the list row.

gridCellProps: import("@react-types/shared").DOMAttributes;

Props for the list item description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaGridSelectionCheckboxProps {

A unique key for the checkbox.

key: import("@react-types/shared").Key;
}
Referenced by
export interface GridSelectionCheckboxAria {

Props for the row selection checkbox element.

checkboxProps: AriaCheckboxProps;
}
Referenced by
export interface AriaGridListSectionProps {

An accessibility label for the section. Required if heading is not present.

'aria-label'?: string;
}
Referenced by
export interface GridListSectionAria {

Props for the wrapper list item.

rowProps: import("@react-types/shared").DOMAttributes;

Props for the heading element, if any.

rowHeaderProps: import("@react-types/shared").DOMAttributes;

Props for the grid's row group element.

rowGroupProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaMenuProps<T> extends MenuProps<T>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Whether pressing the escape key should clear selection in the menu or not.

more
less

Most experiences should not modify this option as it eliminates a keyboard user's ability to easily clear selection. Only use if the escape key is being handled externally or should not trigger selection clearing contextually.

@default — 'clearSelection'

escapeKeyBehavior?: "clearSelection" | "none";
}
Referenced by
export interface AriaMenuOptions<T> extends Omit<AriaMenuProps<T>, "children">, import("@react-types/shared").KeyboardEvents {

Whether the menu uses virtual scrolling.

isVirtualized?: boolean;

An optional keyboard delegate implementation for type to select, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;

Whether the menu items should use virtual focus instead of being focused directly.

shouldUseVirtualFocus?: boolean;
}
Referenced by
export interface MenuAria {

Props for the menu element.

menuProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface MenuProps<T> extends import("@react-types/shared").CollectionBase<T>, import("@react-types/shared").MultipleSelection {

Where the focus should be set.

autoFocus?: boolean | import("@react-types/shared").FocusStrategy;

Whether keyboard navigation is circular.

shouldFocusWrap?: boolean;

Handler that is called when an item is selected.

onAction?: (key: import("@react-types/shared").Key, value: T) => void;

Handler that is called when the menu should close after selecting an item.

onClose?: () => void;
}
Referenced by
export interface AriaMenuItemProps extends import("@react-types/shared").DOMProps, import("@react-types/shared").PressEvents, import("@react-types/shared").HoverEvents, import("@react-types/shared").KeyboardEvents, import("@react-types/shared").FocusEvents {

Whether the menu item is disabled.

more
less

@deprecated — - pass disabledKeys to useTreeState instead.

isDisabled?: boolean;

Whether the menu item is selected.

more
less

@deprecated — - pass selectedKeys to useTreeState instead.

isSelected?: boolean;

A screen reader only label for the menu item.

'aria-label'?: string;

The unique key for the menu item.

key: import("@react-types/shared").Key;

Handler that is called when the menu should close after selecting an item.

more
less

@deprecated — - pass to the menu instead.

onClose?: () => void;

Whether the menu should close when the menu item is selected.

more
less

@deprecated — - use shouldCloseOnSelect instead.

closeOnSelect?: boolean;

Whether the menu should close when the menu item is selected.

shouldCloseOnSelect?: boolean;

Whether the menu item is contained in a virtual scrolling menu.

isVirtualized?: boolean;

Handler that is called when the user activates the item.

more
less

@deprecated — - pass to the menu instead.

onAction?: (key: import("@react-types/shared").Key) => void;

What kind of popup the item opens.

'aria-haspopup'?: "menu" | "dialog";

Indicates whether the menu item's popup element is expanded or collapsed.

'aria-expanded'?: boolean | "true" | "false";

Identifies the menu item's popup element whose contents or presence is controlled by the menu item.

'aria-controls'?: string;

Identifies the element(s) that describe the menu item.

'aria-describedby'?: string;

Override of the selection manager. By default, state.selectionManager is used.

selectionManager?: import("react-stately").SelectionManager;
}
Referenced by
export interface MenuItemAria {

Props for the menu item element.

menuItemProps: import("@react-types/shared").DOMAttributes;

Props for the main text element inside the menu item.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the description text element inside the menu item, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the keyboard shortcut text element inside the item, if any.

keyboardShortcutProps: import("@react-types/shared").DOMAttributes;

Whether the item is currently focused.

isFocused: boolean;

Whether the item is keyboard focused.

isFocusVisible: boolean;

Whether the item is currently selected.

isSelected: boolean;

Whether the item is currently in a pressed state.

isPressed: boolean;

Whether the item is disabled.

isDisabled: boolean;
}
Referenced by
export interface AriaMenuSectionProps {

The heading for the section.

heading?: ReactNode;

An accessibility label for the section. Required if heading is not present.

'aria-label'?: string;
}
Referenced by
export interface MenuSectionAria {

Props for the wrapper list item.

itemProps: import("@react-types/shared").DOMAttributes;

Props for the heading element, if any.

headingProps: import("@react-types/shared").DOMAttributes;

Props for the group element.

groupProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaMenuTriggerProps {

The type of menu that the menu trigger opens.

type?: "menu" | "listbox";

Whether menu trigger is disabled.

isDisabled?: boolean;

How menu is triggered.

trigger?: import("react-stately").MenuTriggerType;
}
Referenced by
export interface MenuTriggerAria<T> {

Props for the menu trigger element.

menuTriggerProps: AriaButtonProps;

Props for the menu.

menuProps: AriaMenuOptions<T>;
}
Referenced by
export interface SubmenuTriggerAria<T> {

Props for the submenu trigger menu item.

submenuTriggerProps: SubmenuTriggerProps;

Props for the submenu controlled by the submenu trigger menu item.

submenuProps: SubmenuProps<T>;

Props for the submenu's popover container.

popoverProps: Pick<AriaPopoverProps, "isNonModal" | "shouldCloseOnInteractOutside"> & Pick<OverlayProps, "disableFocusManagement">;
}
Referenced by
Unexported symbols referenced here
interface SubmenuTriggerProps extends Omit<AriaMenuItemProps, "key" | "onAction"> {

Whether the submenu trigger is in an expanded state.

isOpen: boolean;
}
Referenced by
interface SubmenuProps<T> extends AriaMenuOptions<T> {

The level of the submenu.

submenuLevel: number;
}
Referenced by
export interface AriaSubmenuTriggerProps {

An object representing the submenu trigger menu item. Contains all the relevant information that makes up the menu item.

more
less

@deprecated —

node?: import("@react-types/shared").Node<unknown>;

Whether the submenu trigger is disabled.

isDisabled?: boolean;

The type of the contents that the submenu trigger opens.

type?: "dialog" | "menu";

Ref of the menu that contains the submenu trigger.

parentMenuRef: import("@react-types/shared").RefObject<HTMLElement | null>;

Ref of the submenu opened by the submenu trigger.

submenuRef: import("@react-types/shared").RefObject<HTMLElement | null>;

The delay time in milliseconds for the submenu to appear after hovering over the trigger.

more
less

@default — 200

delay?: number;

Whether the submenu trigger uses virtual focus.

shouldUseVirtualFocus?: boolean;
}
Referenced by
export interface AriaMeterProps extends AriaProgressBarBaseProps {}
Referenced by
export interface MeterAria {

Props for the meter container element.

meterProps: import("@react-types/shared").DOMAttributes;

Props for the meter's visual label (if any).

labelProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export type MeterProps = ProgressBarBaseProps
export interface AriaNumberFieldProps extends import("react-stately").NumberFieldProps, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").TextInputDOMEvents {

A custom aria-label for the decrement button. If not provided, the localized string "Decrement" is used.

decrementAriaLabel?: string;

A custom aria-label for the increment button. If not provided, the localized string "Increment" is used.

incrementAriaLabel?: string;

Enables or disables changing the value with scroll.

isWheelDisabled?: boolean;
}
Referenced by
export interface NumberFieldAria extends import("@react-types/shared").ValidationResult {

Props for the label element.

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the group wrapper around the input and stepper buttons.

groupProps: import("@react-types/shared").GroupDOMAttributes;

Props for the input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the increment button, to be passed to useButton.

incrementButtonProps: AriaButtonProps;

Props for the decrement button, to be passed to useButton.

decrementButtonProps: AriaButtonProps;

Props for the number field's description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the number field's error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaModalOptions {
isDisabled?: boolean;
}
Referenced by
export interface ModalAria {

Props for the modal content element.

modalProps: ModalAriaProps;
}
Referenced by
Unexported symbols referenced here
interface ModalAriaProps extends import("@react-types/shared").DOMAttributes {

Data attribute marks the dom node as a modal for the aria-modal-polyfill.

'data-ismodal': boolean;
}
Referenced by
export interface ModalProviderAria {

Props to be spread on the container element.

modalProviderProps: AriaAttributes;
}
Referenced by
export interface ModalProviderProps extends import("@react-types/shared").DOMAttributes {
children: ReactNode;
}
Referenced by
export interface OverlayContainerProps extends ModalProviderProps {

The container element in which the overlay portal will be placed.

more
less

@deprecated — - Use a parent UNSAFE_PortalProvider to set your portal container instead.

@default — document.body

portalContainer?: Element;
}
Referenced by
export interface AriaModalOverlayProps extends Pick<AriaOverlayProps, "shouldCloseOnInteractOutside"> {

Whether to close the modal when the user interacts outside it.

more
less

@default — false

isDismissable?: boolean;

Whether pressing the escape key to close the modal should be disabled.

more
less

@default — false

isKeyboardDismissDisabled?: boolean;
}
Referenced by
export interface ModalOverlayAria {

Props for the modal element.

modalProps: import("@react-types/shared").DOMAttributes;

Props for the underlay element.

underlayProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaOverlayProps {

Whether the overlay is currently open.

isOpen?: boolean;

Handler that is called when the overlay should close.

onClose?: () => void;

Whether to close the overlay when the user interacts outside it.

more
less

@default — false

isDismissable?: boolean;

Whether the overlay should close when focus is lost or moves outside it.

shouldCloseOnBlur?: boolean;

Whether pressing the escape key to close the overlay should be disabled.

more
less

@default — false

isKeyboardDismissDisabled?: boolean;

When user interacts with the argument element outside of the overlay ref, return true if onClose should be called. This gives you a chance to filter out interaction with elements that should not dismiss the overlay. By default, onClose will always be called on interaction outside the overlay ref.

shouldCloseOnInteractOutside?: (element: Element) => boolean;
}
Referenced by
export interface OverlayAria {

Props to apply to the overlay container element.

overlayProps: import("@react-types/shared").DOMAttributes;

Props to apply to the underlay element, if any.

underlayProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaPopoverProps extends Omit<AriaPositionProps, "isOpen" | "onClose" | "targetRef" | "overlayRef"> {

The ref for the element which the popover positions itself with respect to.

triggerRef: import("@react-types/shared").RefObject<Element | null>;

The ref for the popover element.

popoverRef: import("@react-types/shared").RefObject<Element | null>;

A ref for the popover arrow element.

arrowRef?: import("@react-types/shared").RefObject<Element | null>;

An optional ref for a group of popovers, e.g. submenus. When provided, this element is used to detect outside interactions and hiding elements from assistive technologies instead of the popoverRef.

groupRef?: import("@react-types/shared").RefObject<Element | null>;

Whether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies.

more
less

Most popovers should not use this option as it may negatively impact the screen reader experience. Only use with components such as combobox, which are designed to handle this situation carefully.

isNonModal?: boolean;

Whether pressing the escape key to close the popover should be disabled.

more
less

Most popovers should not use this option. When set to true, an alternative way to close the popover with a keyboard must be provided.

@default — false

isKeyboardDismissDisabled?: boolean;

When user interacts with the argument element outside of the popover ref, return true if onClose should be called. This gives you a chance to filter out interaction with elements that should not dismiss the popover. By default, onClose will always be called on interaction outside the popover ref.

shouldCloseOnInteractOutside?: (element: Element) => boolean;
}
Referenced by
export interface PopoverAria {

Props for the popover element.

popoverProps: import("@react-types/shared").DOMAttributes;

Props for the popover tip arrow if any.

arrowProps: import("@react-types/shared").DOMAttributes;

Props to apply to the underlay element, if any.

underlayProps: import("@react-types/shared").DOMAttributes;

Placement of the popover with respect to the trigger.

placement: PlacementAxis | null;

The origin of the target in the overlay's coordinate system. Useful for animations.

triggerAnchorPoint: {
x: number;
y: number;
} | null;
}
Referenced by
export interface AriaPositionProps extends PositionProps {

Cross size of the overlay arrow in pixels.

more
less

@default — 0

arrowSize?: number;

Element that that serves as the positioning boundary.

more
less

@default — document.body

boundaryElement?: Element;

The ref for the element which the overlay positions itself with respect to.

targetRef: import("@react-types/shared").RefObject<Element | null>;

The ref for the overlay element.

overlayRef: import("@react-types/shared").RefObject<Element | null>;

The ref for the arrow element.

arrowRef?: import("@react-types/shared").RefObject<Element | null>;

A ref for the scrollable region within the overlay.

more
less

@default — overlayRef

scrollRef?: import("@react-types/shared").RefObject<Element | null>;

Whether the overlay should update its position automatically.

more
less

@default — true

shouldUpdatePosition?: boolean;

Handler that is called when the overlay should close.

onClose?: (() => void) | null;

The maxHeight specified for the overlay element. By default, it will take all space up to the current viewport height.

maxHeight?: number;

The minimum distance the arrow's edge should be from the edge of the overlay element.

more
less

@default — 0

arrowBoundaryOffset?: number;

Overrides the target element's bounding rectangle. Useful for positioning relative to a specific point such as the mouse cursor (e.g. context menus) or text selection.

more
less

@default — target.getBoundingClientRect()

@param — - The target element.

getTargetRect?: (target: Element) => DOMRect | null | undefined;
}
Referenced by
export interface PositionAria {

Props for the overlay container element.

overlayProps: import("@react-types/shared").DOMAttributes;

Props for the overlay tip arrow if any.

arrowProps: import("@react-types/shared").DOMAttributes;

Placement of the overlay with respect to the overlay trigger.

placement: PlacementAxis | null;

The origin of the target in the overlay's coordinate system. Useful for animations.

triggerAnchorPoint: {
x: number;
y: number;
} | null;

Updates the position of the overlay.

updatePosition(): void;
}
Referenced by
export type Placement = "bottom" | "bottom left" | "bottom right" | "bottom start" | "bottom end" | "top" | "top left" | "top right" | "top start" | "top end" | "left" | "left top" | "left bottom" | "start" | "start top" | "start bottom" | "right" | "right top" | "right bottom" | "end" | "end top" | "end bottom"
Referenced by
export type PlacementAxis = Axis | "center"
Referenced by
export interface PositionProps {

The placement of the element with respect to its anchor element.

more
less

@default — 'bottom'

placement?: Placement;

The placement padding that should be applied between the element and its surrounding container.

more
less

@default — 12

containerPadding?: number;

The additional offset applied along the main axis between the element and its anchor element.

more
less

@default — 0

offset?: number;

The additional offset applied along the cross axis between the element and its anchor element.

more
less

@default — 0

crossOffset?: number;

Whether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.

more
less

@default — true

shouldFlip?: boolean;

Whether the element is rendered.

isOpen?: boolean;
}
Referenced by
export type Axis = "top" | "bottom" | "left" | "right"
Referenced by
export type SizeAxis = "width" | "height"
export interface DismissButtonProps extends import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").DOMProps {

Called when the dismiss button is activated.

onDismiss?: () => void;
}
Referenced by
export interface OverlayProps {

The container element in which the overlay portal will be placed.

more
less

@default — document.body

portalContainer?: Element;

The overlay to render in the portal.

children: ReactNode;

Disables default focus management for the overlay, including containment and restoration. This option should be used very carefully. When focus management is disabled, you must implement focus containment and restoration to ensure the overlay is keyboard accessible.

disableFocusManagement?: boolean;

Whether to contain focus within the overlay.

shouldContainFocus?: boolean;

Whether the overlay is currently performing an exit animation. When true, focus is allowed to move outside.

isExiting?: boolean;
}
Referenced by
export interface OverlayTriggerAria {

Props for the trigger element.

triggerProps: AriaButtonProps;

Props for the overlay container element.

overlayProps: import("@react-types/shared").DOMProps;
}
Referenced by
export interface OverlayTriggerProps {

Type of overlay that is opened by the trigger.

type: "dialog" | "menu" | "listbox" | "tree" | "grid";
}
Referenced by
export interface PortalProviderProps {

Should return the element where we should portal to. Can clear the context by passing null.

getContainer?: (() => HTMLElement | null) | null;

The content of the PortalProvider. Should contain all children that want to portal their overlays to the element returned by the provided getContainer().

children: ReactNode;
}
Referenced by
export interface PortalProviderContextValue extends Omit<PortalProviderProps, "children"> {}
Referenced by
export interface AriaProgressBarProps extends ProgressBarProps, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface ProgressBarAria {

Props for the progress bar container element.

progressBarProps: import("@react-types/shared").DOMAttributes;

Props for the progress bar's visual label element (if any).

labelProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface ProgressBarProps extends ProgressBarBaseProps {

Whether presentation is indeterminate when progress isn't known.

isIndeterminate?: boolean;
}
Referenced by
export interface ProgressBarBaseProps {

The current value (controlled).

more
less

@default — 0

value?: number;

The smallest value allowed for the input.

more
less

@default — 0

minValue?: number;

The largest value allowed for the input.

more
less

@default — 100

maxValue?: number;

The content to display as the label.

label?: ReactNode;

The display format of the value label.

more
less

@default — { style: 'percent' }

formatOptions?: NumberFormatOptions;

The content to display as the value's label (e.g. 1 of 4).

valueLabel?: ReactNode;
}
Referenced by
export interface AriaProgressBarBaseProps extends ProgressBarBaseProps, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface RadioGroupAria extends import("@react-types/shared").ValidationResult {

Props for the radio group wrapper element.

radioGroupProps: import("@react-types/shared").DOMAttributes;

Props for the radio group's visible label (if any).

labelProps: import("@react-types/shared").DOMAttributes;

Props for the radio group description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the radio group error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface RadioAria {

Props for the label wrapper element.

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the checkbox description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributesWithRef<HTMLElement>;

Whether the radio is disabled.

isDisabled: boolean;

Whether the radio is currently selected.

isSelected: boolean;

Whether the radio is in a pressed state.

isPressed: boolean;
}
Referenced by
export interface RadioProps extends import("@react-types/shared").FocusableProps {

The value of the radio button, used when submitting an HTML form. See MDN.

value: string;

The label for the Radio. Accepts any renderable node.

children?: ReactNode;

Whether the radio button is disabled or not. Shows that a selection exists, but is not available in that circumstance.

isDisabled?: boolean;
}
Referenced by
export interface AriaSearchFieldProps extends import("react-stately").SearchFieldProps, Omit<AriaTextFieldProps, "type"> {

An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See MDN.

enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";

The type of input to render. See MDN.

more
less

@default — 'search'

type?: "text" | "search" | "url" | "tel" | "email" | "password" | (string & {});
}
Referenced by
export interface SearchFieldAria extends import("@react-types/shared").ValidationResult {

Props for the text field's visible label element (if any).

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the clear button.

clearButtonProps: AriaButtonProps;

Props for the searchfield's description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the searchfield's error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaHiddenSelectProps {

Describes the type of autocomplete functionality the input should provide if any. See MDN.

autoComplete?: string;

The text label for the select.

label?: ReactNode;

HTML form input name.

name?: string;

The <form> element to associate the input with. The value of this attribute must be the id of a <form> in the same document. See MDN.

form?: string;

Sets the disabled state of the select and input.

isDisabled?: boolean;
}
Referenced by
export interface AriaHiddenSelectOptions extends AriaHiddenSelectProps {

A ref to the hidden <select> element.

selectRef?: import("@react-types/shared").RefObject<HTMLSelectElement | HTMLInputElement | null>;
}
Referenced by
export interface HiddenSelectAria {

Props for the container element.

containerProps: HTMLAttributes<import("@react-types/shared").FocusableElement>;

Props for the hidden input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the hidden select element.

selectProps: SelectHTMLAttributes<HTMLSelectElement>;
}
Referenced by
export interface HiddenSelectProps<T, M extends import("react-stately").SelectionMode = "single"> extends AriaHiddenSelectProps {

State for the select.

state: import("react-stately").SelectState<T, M>;

A ref to the trigger element.

triggerRef: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>;
}
Referenced by
export interface AriaSelectProps<T, M extends import("react-stately").SelectionMode = "single"> extends import("react-stately").SelectProps<T, M>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").FocusableDOMProps {

Describes the type of autocomplete functionality the input should provide if any. See MDN.

autoComplete?: string;

The name of the input, used when submitting an HTML form.

name?: string;

The <form> element to associate the input with. The value of this attribute must be the id of a <form> in the same document. See MDN.

form?: string;
}
Referenced by
export interface AriaSelectOptions<T, M extends import("react-stately").SelectionMode = "single"> extends Omit<AriaSelectProps<T, M>, "children"> {

An optional keyboard delegate implementation for type to select, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;
}
Referenced by
export interface SelectAria<T, M extends import("react-stately").SelectionMode = "single"> extends import("@react-types/shared").ValidationResult {

Props for the label element.

labelProps: import("@react-types/shared").DOMAttributes;

Props for the popup trigger element.

triggerProps: AriaButtonProps;

Props for the element representing the selected value.

valueProps: import("@react-types/shared").DOMAttributes;

Props for the popup.

menuProps: AriaListBoxOptions<T>;

Props for the select's description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the select's error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;

Props for the hidden select element.

hiddenSelectProps: HiddenSelectProps<T, M>;
}
Referenced by
export interface SeparatorAria {

Props for the separator element.

separatorProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface SeparatorProps extends import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

The orientation of the separator.

more
less

@default — 'horizontal'

orientation?: import("@react-types/shared").Orientation;

The HTML element type that will be used to render the separator.

elementType?: string;
}
Referenced by
export interface SSRProviderProps {

Your application here.

children: ReactNode;
}
Referenced by
export interface AriaSliderProps<T = number | number[]> extends import("react-stately").SliderProps<T>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface SliderAria {

Props for the label element.

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the root element of the slider component; groups slider inputs.

groupProps: import("@react-types/shared").DOMAttributes;

Props for the track element.

trackProps: import("@react-types/shared").DOMAttributes;

Props for the output element, displaying the value of the slider thumbs.

outputProps: OutputHTMLAttributes<HTMLOutputElement>;
}
Referenced by
export interface AriaSliderThumbOptions extends AriaSliderThumbProps {

A ref to the track element.

trackRef: import("@react-types/shared").RefObject<Element | null>;

A ref to the thumb input element.

inputRef: import("@react-types/shared").RefObject<HTMLInputElement | null>;
}
Referenced by
export interface SliderThumbAria {

Props for the root thumb element; handles the dragging motion.

thumbProps: import("@react-types/shared").DOMAttributes;

Props for the visually hidden range input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the label element for this thumb (optional).

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Whether this thumb is currently being dragged.

isDragging: boolean;

Whether the thumb is currently focused.

isFocused: boolean;

Whether the thumb is disabled.

isDisabled: boolean;
}
Referenced by
export interface SliderThumbProps extends import("@react-types/shared").FocusableProps, import("@react-types/shared").LabelableProps {

The orientation of the Slider.

more
less

@deprecated — - pass to the slider instead.

@default — 'horizontal'

orientation?: import("@react-types/shared").Orientation;

Whether the Thumb is disabled.

isDisabled?: boolean;

Index of the thumb within the slider.

more
less

@default — 0

index?: number;

@deprecated —

isRequired?: boolean;

@deprecated —

isInvalid?: boolean;

@deprecated —

validationState?: import("@react-types/shared").ValidationState;
}
Referenced by
export interface AriaSwitchProps extends SwitchProps, import("@react-types/shared").InputDOMProps, AriaToggleProps {

Identifies the element (or elements) whose contents or presence are controlled by the current element.

'aria-controls'?: string;
}
Referenced by
export interface SwitchAria extends import("@react-types/shared").ValidationResult {

Props for the label wrapper element.

labelProps: LabelHTMLAttributes<HTMLLabelElement>;

Props for the input element.

inputProps: InputHTMLAttributes<HTMLInputElement>;

Props for the switch description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributesWithRef<HTMLElement>;

Props for the switch error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributesWithRef<HTMLElement>;

Whether the switch is selected.

isSelected: boolean;

Whether the switch is in a pressed state.

isPressed: boolean;

Whether the switch is disabled.

isDisabled: boolean;

Whether the switch is read only.

isReadOnly: boolean;
}
Referenced by
export interface SwitchProps extends import("react-stately").ToggleProps {}
Referenced by
export interface AriaTableCellProps {

An object representing the table cell. Contains all the relevant information that makes up the row header.

node: import("react-stately").GridNode<unknown>;

Whether the cell is contained in a virtual scroller.

isVirtualized?: boolean;

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;

Handler that is called when a user performs an action on the cell. Please use onCellAction at the collection level instead.

more
less

@deprecated —

onAction?: () => void;
}
Referenced by
export interface TableCellAria {

Props for the table cell element.

gridCellProps: import("@react-types/shared").DOMAttributes;

Whether the cell is currently in a pressed state.

isPressed: boolean;
}
Referenced by
export interface AriaTableColumnHeaderProps<T> {

An object representing the column header. Contains all the relevant information that makes up the column header.

node: import("react-stately").GridNode<T>;

Whether the column header is contained in a virtual scroller.

isVirtualized?: boolean;
}
Referenced by
export interface TableColumnHeaderAria {

Props for the column header element.

columnHeaderProps: import("@react-types/shared").DOMAttributes;

Whether the column is currently in a pressed state.

isPressed: boolean;
}
Referenced by
export interface AriaTableColumnResizeProps<T> {

An object representing the column header. Contains all the relevant information that makes up the column header.

column: import("react-stately").GridNode<T>;

Aria label for the hidden input. Gets read when resizing.

'aria-label': string;

Ref to the trigger if resizing was started from a column header menu. If it's provided, focus will be returned there when resizing is done. If it isn't provided, it is assumed that the resizer is visible at all time and keyboard resizing is started via pressing Enter on the resizer and not on focus.

triggerRef?: import("@react-types/shared").RefObject<import("@react-types/shared").FocusableElement | null>;

If resizing is disabled.

isDisabled?: boolean;

Called when resizing starts.

onResizeStart?: (widths: Map<import("@react-types/shared").Key, import("react-stately").ColumnSize>) => void;

Called for every resize event that results in new column sizes.

onResize?: (widths: Map<import("@react-types/shared").Key, import("react-stately").ColumnSize>) => void;

Called when resizing ends.

onResizeEnd?: (widths: Map<import("@react-types/shared").Key, import("react-stately").ColumnSize>) => void;
}
Referenced by
export interface TableColumnResizeAria {

Props for the visually hidden input element.

inputProps: import("@react-types/shared").DOMAttributes;

Props for the resizer element.

resizerProps: import("@react-types/shared").DOMAttributes;

Whether this column is currently being resized.

isResizing: boolean;
}
Referenced by
export interface AriaTableProps extends GridProps {

The layout object for the table. Computes what content is visible and how to position and style them.

layoutDelegate?: import("@react-types/shared").LayoutDelegate;

@deprecated — - Use layoutDelegate instead.

layout?: DeprecatedLayout;
}
Referenced by
Unexported symbols referenced here
interface GridProps extends import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Whether the grid uses virtual scrolling.

isVirtualized?: boolean;

Whether typeahead navigation is disabled.

more
less

@default — false

disallowTypeAhead?: boolean;

An optional keyboard delegate implementation for type to select, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;

Whether initial grid focus should be placed on the grid row or grid cell.

more
less

@default — 'row'

focusMode?: "row" | "cell";

A function that returns the text that should be announced by assistive technology when a row is added or removed from selection.

more
less

@default — (key) => state.collection.getItem(key)?.textValue

getRowText?: (key: import("@react-types/shared").Key) => string;

The ref attached to the scrollable body. Used to provided automatic scrolling on item focus for non-virtualized grids.

scrollRef?: import("@react-types/shared").RefObject<HTMLElement | null>;

Handler that is called when a user performs an action on the row.

onRowAction?: (key: import("@react-types/shared").Key) => void;

Handler that is called when a user performs an action on the cell.

onCellAction?: (key: import("@react-types/shared").Key) => void;

Whether pressing the escape key should clear selection in the grid or not.

more
less

Most experiences should not modify this option as it eliminates a keyboard user's ability to easily clear selection. Only use if the escape key is being handled externally or should not trigger selection clearing contextually.

@default — 'clearSelection'

escapeKeyBehavior?: "clearSelection" | "none";

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;
}
Referenced by
interface DeprecatedLayout {
getLayoutInfo(key: import("@react-types/shared").Key): DeprecatedLayoutInfo;
getContentSize(): import("@react-types/shared").Size;
virtualizer: DeprecatedVirtualizer;
}
Referenced by
interface DeprecatedLayoutInfo { }
Referenced by
interface DeprecatedVirtualizer {
visibleRect: import("@react-types/shared").Rect;
}
Referenced by
export interface AriaTableSelectionCheckboxProps {

A unique key for the checkbox.

key: import("@react-types/shared").Key;
}
Referenced by
export interface TableSelectAllCheckboxAria {

Props for the select all checkbox element.

checkboxProps: AriaCheckboxProps;
}
Referenced by
export interface TableSelectionCheckboxAria {

Props for the row selection checkbox element.

checkboxProps: AriaCheckboxProps;
}
Referenced by
export interface GridAria {

Props for the grid element.

gridProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface GridRowAria extends SelectableItemStates {

Props for the grid row element.

rowProps: import("@react-types/shared").DOMAttributes;

Whether the row is currently in a pressed state.

isPressed: boolean;
}
Referenced by
export interface GridRowProps<T> {

An object representing the grid row. Contains all the relevant information that makes up the grid row.

node: import("react-stately").GridNode<T>;

Whether the grid row is contained in a virtual scroller.

isVirtualized?: boolean;

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;

Handler that is called when a user performs an action on the row. Please use onCellAction at the collection level instead.

more
less

@deprecated —

onAction?: () => void;
}
Referenced by
export interface TableHeaderRowAria {

Props for the grid row element.

rowProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaTabListProps<T> extends import("react-stately").TabListProps<T>, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {

Whether tabs are activated automatically on focus or manually.

more
less

@default — 'automatic'

keyboardActivation?: "automatic" | "manual";

The orientation of the tabs.

more
less

@default — 'horizontal'

orientation?: import("@react-types/shared").Orientation;
}
Referenced by
export interface AriaTabListOptions<T> extends Omit<AriaTabListProps<T>, "children"> {}
Referenced by
export interface TabListAria {

Props for the tablist container.

tabListProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaTabPanelProps extends Omit<import("@react-types/shared").DOMProps, "id">, import("@react-types/shared").AriaLabelingProps {

The unique id of the tab.

id?: import("@react-types/shared").Key;
}
Referenced by
export interface TabPanelAria {

Props for the tab panel element.

tabPanelProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaTabProps extends import("@react-types/shared").AriaLabelingProps {

The key of the tab.

key: import("@react-types/shared").Key;

Whether the tab should be disabled.

isDisabled?: boolean;

Whether the tab selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;
}
Referenced by
export interface TabAria {

Props for the tab element.

tabProps: import("@react-types/shared").DOMAttributes;

Whether the tab is currently selected.

isSelected: boolean;

Whether the tab is disabled.

isDisabled: boolean;

Whether the tab is currently in a pressed state.

isPressed: boolean;
}
Referenced by
export interface AriaTagGroupProps<T> extends import("@react-types/shared").CollectionBase<T>, import("@react-types/shared").MultipleSelection, Pick<AriaGridListProps<T>, "escapeKeyBehavior" | "onAction">, import("@react-types/shared").DOMProps, import("@react-types/shared").LabelableProps, import("@react-types/shared").AriaLabelingProps, Omit<import("@react-types/shared").HelpTextProps, "errorMessage"> {

How multiple selection should behave in the collection.

more
less

@default — 'toggle'

selectionBehavior?: import("@react-types/shared").SelectionBehavior;

Whether selection should occur on press up instead of press down.

shouldSelectOnPressUp?: boolean;

Handler that is called when a user deletes a tag.

onRemove?: (keys: Set<import("@react-types/shared").Key>) => void;

An error message for the field.

errorMessage?: ReactNode;

Whether pressing the escape key should clear selection in the TagGroup or not.

more
less

Most experiences should not modify this option as it eliminates a keyboard user's ability to easily clear selection. Only use if the escape key is being handled externally or should not trigger selection clearing contextually.

@default — 'clearSelection'

escapeKeyBehavior?: "clearSelection" | "none";
}
Referenced by
export interface AriaTagGroupOptions<T> extends Omit<AriaTagGroupProps<T>, "children"> {

An optional keyboard delegate to handle arrow key navigation, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;
}
Referenced by
export interface TagGroupAria {

Props for the tag grouping element.

gridProps: import("@react-types/shared").DOMAttributes;

Props for the tag group's visible label (if any).

labelProps: import("@react-types/shared").DOMAttributes;

Props for the tag group description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the tag group error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaTagProps<T> {

An object representing the tag. Contains all the relevant information that makes up the tag.

item: import("@react-types/shared").Node<T>;
}
Referenced by
export interface TagAria extends SelectableItemStates {

Props for the tag row element.

rowProps: import("@react-types/shared").DOMAttributes;

Props for the tag cell element.

gridCellProps: import("@react-types/shared").DOMAttributes;

Props for the tag remove button.

removeButtonProps: AriaButtonProps;

Whether the tag can be removed.

allowsRemoving: boolean;
}
Referenced by
export interface AriaTextFieldOptions<T extends TextFieldIntrinsicElements> extends AriaTextFieldProps<TextFieldHTMLElementType[T]> {

The HTML element used to render the input, e.g. 'input', or 'textarea'. It determines whether certain HTML attributes will be included in inputProps. For example, type.

more
less

@default — 'input'

inputElementType?: T;

Controls whether inputted text is automatically capitalized and, if so, in what manner. See MDN.

autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters";

An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See MDN.

enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
}
Referenced by
Unexported symbols referenced here

The HTML element interfaces that useTextField supports based on what is defined for TextFieldIntrinsicElements; e.g. HTMLInputElement, HTMLTextAreaElement.

type TextFieldHTMLElementType = Pick<IntrinsicHTMLElements, TextFieldIntrinsicElements>
Referenced by
export interface AriaTextFieldProps<T = HTMLInputElement> extends TextFieldProps<T>, import("@react-types/shared").AriaLabelingProps, import("@react-types/shared").FocusableDOMProps, import("@react-types/shared").TextInputDOMProps<T>, import("@react-types/shared").AriaValidationProps {

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

'aria-activedescendant'?: string;

Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.

'aria-autocomplete'?: "none" | "inline" | "list" | "both";

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";

Identifies the element (or elements) whose contents or presence are controlled by the current element.

'aria-controls'?: string;

An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See MDN.

enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
}
Referenced by
export interface TextFieldAria<T extends TextFieldIntrinsicElements = DefaultElementType> extends import("@react-types/shared").ValidationResult {

Props for the input element.

inputProps: TextFieldInputProps<T>;

Props for the text field's visible label element, if any.

labelProps: import("@react-types/shared").DOMAttributes | LabelHTMLAttributes<HTMLLabelElement>;

Props for the text field's description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the text field's error message element, if any.

errorMessageProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
Unexported symbols referenced here

The type of inputProps returned by useTextField; e.g. InputHTMLAttributes, TextareaHTMLAttributes.

type TextFieldInputProps<T extends TextFieldIntrinsicElements> = TextFieldHTMLAttributesType[T]
Referenced by

The HTML attributes interfaces that useTextField supports based on what is defined for TextFieldIntrinsicElements; e.g. InputHTMLAttributes, TextareaHTMLAttributes.

type TextFieldHTMLAttributesType = Pick<IntrinsicHTMLAttributes, TextFieldIntrinsicElements>
Referenced by
export interface AriaToastRegionProps extends import("@react-types/shared").AriaLabelingProps {

An accessibility label for the toast region.

more
less

@default — 'Notifications'

'aria-label'?: string;
}
Referenced by
export interface ToastRegionAria {

Props for the landmark region element.

regionProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaToastProps<T> extends import("@react-types/shared").AriaLabelingProps {

The toast object.

toast: import("react-stately").QueuedToast<T>;
}
Referenced by
export interface ToastAria {

Props for the toast container, non-modal dialog element.

toastProps: import("@react-types/shared").DOMAttributes;

Props for the toast content alert message.

contentProps: import("@react-types/shared").DOMAttributes;

Props for the toast title element.

titleProps: import("@react-types/shared").DOMAttributes;

Props for the toast description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the toast close button.

closeButtonProps: AriaButtonProps;
}
Referenced by
export interface AriaToolbarProps extends import("@react-types/shared").AriaLabelingProps {

The orientation of the entire toolbar.

more
less

@default — 'horizontal'

orientation?: import("@react-types/shared").Orientation;
}
Referenced by
export interface ToolbarAria {

Props for the toolbar container.

toolbarProps: HTMLAttributes<HTMLElement>;
}
Referenced by
export interface AriaTooltipProps extends TooltipProps, import("@react-types/shared").DOMProps, import("@react-types/shared").AriaLabelingProps {}
Referenced by
export interface TooltipAria {

Props for the tooltip element.

tooltipProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface TooltipProps {
isOpen?: boolean;
}
Referenced by
export interface TooltipTriggerAria {

Props for the trigger element.

triggerProps: import("@react-types/shared").DOMAttributes;

Props for the overlay container element.

tooltipProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaTreeProps<T> extends AriaGridListProps<T> {}
export interface TreeProps<T> extends GridListProps<T> {}
export interface TreeAria {

Props for the treegrid element.

gridProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface AriaTreeOptions<T> extends Omit<AriaGridListOptions<T>, "children" | "shouldFocusWrap"> {

An optional keyboard delegate implementation for type to select, to override the default.

keyboardDelegate?: import("@react-types/shared").KeyboardDelegate;
}
Referenced by
export interface AriaTreeItemOptions extends Omit<AriaGridListItemOptions, "isVirtualized"> {

An object representing the treegrid item. Contains all the relevant information that makes up the treegrid row.

node: import("@react-types/shared").Node<unknown>;
}
Referenced by
export interface TreeItemAria extends GridListItemAria {

Props for the tree grid row element.

rowProps: import("@react-types/shared").DOMAttributes;

Props for the tree grid cell element within the tree grid list row.

gridCellProps: import("@react-types/shared").DOMAttributes;

Props for the tree grid row description element, if any.

descriptionProps: import("@react-types/shared").DOMAttributes;

Props for the tree grid row expand button.

expandButtonProps: AriaButtonProps;
}
Referenced by
export interface VisuallyHiddenAria {
visuallyHiddenProps: import("@react-types/shared").DOMAttributes;
}
Referenced by
export interface VisuallyHiddenProps extends import("@react-types/shared").DOMAttributes {

The content to visually hide.

children?: ReactNode;

The element type for the container.

more
less

@default — 'div'

elementType?: string | JSXElementConstructor<any>;

Whether the element should become visible on focus, for example skip links.

isFocusable?: boolean;
}
Referenced by
}
module "react-aria/i18n" {
export function LocalizedStringProvider(props: LocalizedStringProviderProps): Element
export function getLocalizationScript(locale: string, dictionary?: LocalizedStringDictionary): string
export function createLocalizedStringDictionary(packages: string[]): LocalizedStringDictionary
export interface LocalizedStringProviderProps {
locale: string;
dictionary?: LocalizedStringDictionary;
nonce?: string;
}
Referenced by
export const dictionary: LocalizedStringDictionary = ...
}
module "react-aria/i18n/*" {
export type default = {
[key: string]: Record<string, LocalizedString>;
}
}