Skip to content

Commit

Permalink
fix(typings): Type Tab.Pane is missing (#4457) (#4473)
Browse files Browse the repository at this point in the history
  • Loading branch information
atti187 committed Mar 19, 2024
1 parent 67f2c92 commit 21cce97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/Tab/Tab.d.ts
@@ -1,7 +1,7 @@
import * as React from 'react'

import { ForwardRefComponent, SemanticShorthandItem } from '../../generic'
import { TabPaneProps } from './TabPane'
import TabPane, { TabPaneProps } from './TabPane'

export interface TabProps extends StrictTabProps {
[key: string]: any
Expand Down Expand Up @@ -58,6 +58,8 @@ export interface StrictTabProps {
renderActiveOnly?: boolean
}

declare const Tab: ForwardRefComponent<TabProps, HTMLDivElement>
declare const Tab: ForwardRefComponent<TabProps, HTMLDivElement> & {
Pane: typeof TabPane
}

export default Tab

0 comments on commit 21cce97

Please sign in to comment.