diff --git a/packages/react-core/src/components/Dropdown/DropdownItem.tsx b/packages/react-core/src/components/Dropdown/DropdownItem.tsx index 83484c2a933..f7c5cad9eec 100644 --- a/packages/react-core/src/components/Dropdown/DropdownItem.tsx +++ b/packages/react-core/src/components/Dropdown/DropdownItem.tsx @@ -10,8 +10,12 @@ export interface DropdownItemProps extends Omit, OUIAProps className?: string; /** Description of the dropdown item */ description?: React.ReactNode; + /** Render item as disabled option */ + isDisabled?: boolean; /** Identifies the component in the dropdown onSelect callback */ itemId?: any; + /** Callback for item click */ + onClick?: (event?: any) => void; /** Value to overwrite the randomly generated data-ouia-component-id.*/ ouiaId?: number | string; /** 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. */ @@ -22,14 +26,24 @@ export const DropdownItem: React.FunctionComponent = ({ children, className, description, + isDisabled, itemId, + onClick, ouiaId, ouiaSafe, ...props }: DropdownItemProps) => { const ouiaProps = useOUIAProps(DropdownItem.displayName, ouiaId, ouiaSafe); return ( - + {children} );