From c26868f44c6c298800f40d6c084f2c3cc874493f Mon Sep 17 00:00:00 2001 From: Eric Olkowski Date: Thu, 5 Jan 2023 13:56:57 -0500 Subject: [PATCH] feat(Tabs): added event to onAdd callback --- packages/react-core/src/components/Tabs/Tabs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Tabs/Tabs.tsx b/packages/react-core/src/components/Tabs/Tabs.tsx index eeadb9e00b9..2b91ec4e07e 100644 --- a/packages/react-core/src/components/Tabs/Tabs.tsx +++ b/packages/react-core/src/components/Tabs/Tabs.tsx @@ -45,7 +45,7 @@ export interface TabsProps extends Omit, eventKey: number | string) => void; /** @beta Callback for the add button. Passing this property inserts the add button */ - onAdd?: () => void; + onAdd?: (event: React.MouseEvent) => void; /** @beta Aria-label for the add button */ addButtonAriaLabel?: string; /** Uniquely identifies the tabs */