import { default as React, ReactNode } from 'react'; export interface DropdownTriggerProps extends React.ButtonHTMLAttributes { /** Set this to `true` when the associated popup is open */ isOpen?: boolean; /** Set to `false` to hide the chevron icon indicating open state */ showOpenIndicator?: boolean; /** Variant of the trigger. Use "table" when used inside table cells */ kind?: "default" | "table"; /** Content of the `label` element */ labelText?: ReactNode; /** Props to spread onto the `label` element */ labelProps?: React.LabelHTMLAttributes; /** * Renders a string or node as the value displayed in the `DropdownTrigger` * Usually, this represents the name of a selected option */ displayValue?: string | ReactNode; /** Render function that returns JSX to display as the value */ renderDisplayValue?: () => ReactNode; /** Error message. When this prop is passed, an error state is displayed */ errorText?: string; /** Set to `true` to display error state without providing error text */ hasError?: boolean; /** * Sets a minimum width. * Use the full CSS value with the unit (e.g. "400px") */ minWidth?: string; /** Optional value for `data-testid` attribute */ testId?: string; /** arbitrary JSX to place at the start of the faux input */ startContent?: ReactNode; /** arbitrary JSX to place at the end of the faux input */ endContent?: ReactNode; } /** * Generic trigger button for dropdowns. `DropdownTrigger` can be composed with * other components like `Popover` to create a wide range of dropdown, popover, and menu components. * * The entire clickable area is a `button` element to ensure dropdown triggers are accessible. * * **Additional props will be spread on the `button` element.** */ declare const DropdownTrigger: React.ForwardRefExoticComponent>; export default DropdownTrigger; //# sourceMappingURL=index.d.ts.map