diff --git a/src/tabs/tabs.tsx b/src/tabs/tabs.tsx index 617977fb5..5bfaa51bb 100644 --- a/src/tabs/tabs.tsx +++ b/src/tabs/tabs.tsx @@ -3,11 +3,11 @@ import classNames from 'classnames' import { useTabStore, Tab as BaseTab, + TabProps as BaseTabProps, TabList as BaseTabList, TabPanel as BaseTabPanel, TabPanelProps as BaseTabPanelProps, TabStore, - RoleProps, } from '@ariakit/react' import { Inline } from '../inline' import type { ObfuscatedClassName, Space } from '../utils/common-types' @@ -74,7 +74,9 @@ function Tabs({ return {children} } -interface TabProps extends ObfuscatedClassName, Pick { +interface TabProps + extends ObfuscatedClassName, + Omit { /** * The content to render inside of the tab button */ @@ -84,8 +86,6 @@ interface TabProps extends ObfuscatedClassName, Pick { * The tab's identifier. This must match its corresponding ``'s id */ id: string - - onClick?: (event: React.MouseEvent) => void } /**