UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

33 lines 1.36 kB
/// <reference types="react" /> import { MenuItemProps } from '../Menu'; /** * See the MenuItem section of the Menu documentation for additional props that may be passed. */ export interface SelectOptionProps extends Omit<MenuItemProps, 'ref'> { /** Anything which can be rendered in a select option */ children?: React.ReactNode; /** Classes applied to root element of select option */ className?: string; /** @hide Forwarded ref */ innerRef?: React.Ref<HTMLAnchorElement | HTMLButtonElement>; /** Identifies the component in the Select onSelect callback */ value?: any; /** Indicates the option has a checkbox */ hasCheckbox?: boolean; /** Indicates the option is disabled */ isDisabled?: boolean; /** Indicates the option is selected */ isSelected?: boolean; /** Indicates the option is focused */ isFocused?: boolean; /** Render an external link icon on focus or hover, and set the link's * "target" attribute to a value of "_blank". */ isExternalLink?: boolean; /** Render option with icon */ icon?: React.ReactNode; /** Description of the option */ description?: React.ReactNode; } export declare const SelectOption: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<any>>; //# sourceMappingURL=SelectOption.d.ts.map