Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Select/SelectOption.d.ts

raw
1 /// <reference types="react" />
2 import { MenuItemProps } from '../Menu';
3 /**
4 * See the MenuItem section of the Menu documentation for additional props that may be passed.
5 */
6 export interface SelectOptionProps extends Omit<MenuItemProps, 'ref'> {
7 /** Anything which can be rendered in a select option */
8 children?: React.ReactNode;
9 /** Classes applied to root element of select option */
10 className?: string;
11 /** @hide Forwarded ref */
12 innerRef?: React.Ref<HTMLAnchorElement | HTMLButtonElement>;
13 /** Identifies the component in the Select onSelect callback */
14 value?: any;
15 /** Indicates the option has a checkbox */
16 hasCheckbox?: boolean;
17 /** Indicates the option is disabled */
18 isDisabled?: boolean;
19 /** Indicates the option is selected */
20 isSelected?: boolean;
21 /** Indicates the option is focused */
22 isFocused?: boolean;
23 /** Render an external link icon on focus or hover, and set the link's
24 * "target" attribute to a value of "_blank".
25 */
26 isExternalLink?: boolean;
27 /** Render option with icon */
28 icon?: React.ReactNode;
29 /** Description of the option */
30 description?: React.ReactNode;
31 }
32 export declare const SelectOption: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<any>>;
33 //# sourceMappingURL=SelectOption.d.ts.map