From 22bcc7e2e19a206a1f61c023543733090fe922a4 Mon Sep 17 00:00:00 2001 From: adamviktora Date: Thu, 13 Apr 2023 11:18:49 +0200 Subject: [PATCH] feat(DropdownItem): add missing props to prop table --- .../src/components/Dropdown/DropdownItem.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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} );