UNPKG

@spark-ui/dropdown

Version:

Displays a list of options for the user to pick from—triggered by a button. Differs from Select in that it offers multiple select and its list is not native.

22 lines (21 loc) • 751 B
import { ReactNode, Ref } from 'react'; interface ItemsProps { children: ReactNode; className?: string; ref?: Ref<HTMLUListElement>; } /** * BUGFIX * * 1. The !pointer-events-auto class is needed to prevent a bug * which cannot be reproduced when running Storybook locally, * in scenarios such as when a Dropdown is nested within a Dialog, * the "props" object, containing styles computed by Radix * may erroneously contain "pointerEvents = 'none'", while the Dropdown is open, * making it impossible to select a value using a pointer device */ export declare const Items: { ({ children, className, ref: forwardedRef, ...props }: ItemsProps): import("react").JSX.Element; displayName: string; }; export {};