| 1 |
/// <reference types="react" /> |
| 2 |
import { MenuItemProps } from '../Menu'; |
| 3 |
import { TooltipProps } from '../Tooltip'; |
| 4 |
import { OUIAProps } from '../../helpers'; |
| 5 |
/** |
| 6 |
* See the MenuItem section of the Menu documentation for additional props that may be passed. |
| 7 |
*/ |
| 8 |
export interface DropdownItemProps extends Omit<MenuItemProps, 'ref'>, OUIAProps { |
| 9 |
/** Anything which can be rendered in a dropdown item */ |
| 10 |
children?: React.ReactNode; |
| 11 |
/** Classes applied to root element of dropdown item */ |
| 12 |
className?: string; |
| 13 |
/** @hide Forwarded ref */ |
| 14 |
innerRef?: React.Ref<HTMLAnchorElement | HTMLButtonElement>; |
| 15 |
/** Description of the dropdown item */ |
| 16 |
description?: React.ReactNode; |
| 17 |
/** Render item as disabled option */ |
| 18 |
isDisabled?: boolean; |
| 19 |
/** Render item as aria-disabled option */ |
| 20 |
isAriaDisabled?: boolean; |
| 21 |
/** Identifies the component in the dropdown onSelect callback */ |
| 22 |
value?: any; |
| 23 |
/** Callback for item click */ |
| 24 |
onClick?: (event?: any) => void; |
| 25 |
/** Value to overwrite the randomly generated data-ouia-component-id.*/ |
| 26 |
ouiaId?: number | string; |
| 27 |
/** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */ |
| 28 |
ouiaSafe?: boolean; |
| 29 |
/** Props for adding a tooltip to a menu item */ |
| 30 |
tooltipProps?: TooltipProps; |
| 31 |
} |
| 32 |
export declare const DropdownItem: import("react").ForwardRefExoticComponent<DropdownItemProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>; |
| 33 |
//# sourceMappingURL=DropdownItem.d.ts.map |