Skip to content

Commit

Permalink
add descriptions to simple select
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed Feb 28, 2024
1 parent fd46d10 commit 2cbff7d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ import { MenuToggle, MenuToggleElement } from '@patternfly/react-core/dist/esm/c
export interface SimpleSelectProps {
/** @hide Forwarded ref */
innerRef?: React.Ref<any>;
/** Initial options of the select. */
initialOptions?: React.ReactElement[];
/** Callback triggered on selection. */
onSelect?: (_event: React.MouseEvent<Element, MouseEvent>, selection: string | number) => void;
/** Callback triggered when the select opens or closes. */
onToggle?: (nextIsOpen: boolean) => void;
/** Flag indicating the select should be disabled. */
isDisabled?: boolean;
/** Content of the toggle. Defaults to the selected option. */
toggleContent?: React.ReactNode;
}

Expand Down

0 comments on commit 2cbff7d

Please sign in to comment.