Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 798 Bytes

search-ui-react.dropdownitemprops.md

File metadata and controls

22 lines (16 loc) · 798 Bytes

Home > @yext/search-ui-react > DropdownItemProps

DropdownItemProps type

Props for the DropdownItem().

Signature:

export declare type DropdownItemProps = PropsWithChildren<{
    value: string;
    className?: string;
    focusedClassName?: string;
    itemData?: Record<string, unknown> | undefined;
    onClick?: (value: string, index: number, focusedItemData: FocusedItemData | undefined) => void;
    ariaLabel?: (value: string) => string | string;
}>;

References: FocusedItemData