UNPKG

@payfit/unity-components

Version:

20 lines (19 loc) 786 B
import { Node } from '@react-types/shared'; import { ReactNode } from 'react'; export interface SelectButtonProps<T extends object> { /** Whether the button is disabled */ isDisabled?: boolean; /** Whether the button is in an invalid state */ isInvalid?: boolean; /** Whether the button is read-only */ isReadOnly?: boolean; /** Whether the select popover is currently open */ isOpen: boolean; /** Custom render function to format the selected value display */ renderValue?: (selectedItem: Node<T>) => ReactNode; } declare const SelectButton: { <T extends object>({ isDisabled, isInvalid, isReadOnly, isOpen, renderValue, }: SelectButtonProps<T>): import("react/jsx-runtime").JSX.Element; displayName: string; }; export { SelectButton };