UNPKG

@reusable-ui/dropdown-list-button

Version:

A button component with a dropdown list UI.

13 lines (12 loc) 1.3 kB
/// <reference types="react" /> import { ListStyle, ListVariant, DropdownListActionType, DropdownListExpandedChangeEvent } from '@reusable-ui/dropdown-list'; import { ButtonType, ButtonStyle, ButtonVariant, DropdownButtonProps } from '@reusable-ui/dropdown-button'; import { ListItemProps, ListItem, ListSeparatorItemProps, ListSeparatorItem, ListProps, ListComponentProps } from '@reusable-ui/list'; export { ListItemProps, ListItem, ListSeparatorItemProps, ListSeparatorItem, }; export interface DropdownListButtonProps<TDropdownListExpandedChangeEvent extends DropdownListExpandedChangeEvent<any> = DropdownListExpandedChangeEvent<any>> extends Omit<DropdownButtonProps<TDropdownListExpandedChangeEvent>, 'children'>, Omit<ListComponentProps<Element>, 'listItems'>, Pick<ListProps<Element>, 'children'> { } declare const DropdownListButton: <TDropdownListExpandedChangeEvent extends DropdownListExpandedChangeEvent<any> = DropdownListExpandedChangeEvent<any>>(props: DropdownListButtonProps<TDropdownListExpandedChangeEvent>) => JSX.Element | null; export { DropdownListButton, DropdownListButton as default, }; export type { DropdownListActionType, DropdownListExpandedChangeEvent }; export type { ButtonType, ButtonStyle, ButtonVariant }; export type { ListStyle, ListVariant };