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.

30 lines (29 loc) • 1.1 kB
import { Dropdown as Root } from './Dropdown'; import { DropdownProvider, useDropdownContext } from './DropdownContext'; import { Divider } from './DropdownDivider'; import { Group } from './DropdownGroup'; import { Item } from './DropdownItem'; import { ItemIndicator } from './DropdownItemIndicator'; import { Items } from './DropdownItems'; import { ItemText } from './DropdownItemText'; import { Label } from './DropdownLabel'; import { LeadingIcon } from './DropdownLeadingIcon'; import { Popover } from './DropdownPopover'; import { Portal } from './DropdownPortal'; import { Trigger } from './DropdownTrigger'; import { Value } from './DropdownValue'; export { useDropdownContext, DropdownProvider }; export declare const Dropdown: typeof Root & { Group: typeof Group; Item: typeof Item; Items: typeof Items; ItemText: typeof ItemText; ItemIndicator: typeof ItemIndicator; Label: typeof Label; Popover: typeof Popover; Divider: typeof Divider; Trigger: typeof Trigger; Value: typeof Value; LeadingIcon: typeof LeadingIcon; Portal: typeof Portal; };