-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3] use render props for className with
selected
, disabled
and `…
…hover` state for `<Tab>` (#3244) * use render props for className with `selected`, `disabled` and `hover` state for `<Tab>` * fix border primary
- Loading branch information
1 parent
0b70b44
commit ba30c6c
Showing
5 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'nextra-theme-blog': major | ||
'nextra-theme-docs': major | ||
'nextra': major | ||
--- | ||
|
||
use render props for className with `selected`, `disabled` and `hover` state for `<Tab>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { ComponentProps } from 'react' | ||
import { Tabs as _Tabs, Tab } from './tabs.js' | ||
|
||
// Workaround to fix | ||
// Error: Cannot access Tab.propTypes on the server. You cannot dot into a client module from a | ||
// server component. You can only pass the imported name through. | ||
export const Tabs = Object.assign( | ||
(props: ComponentProps<typeof _Tabs>) => <_Tabs {...props} />, | ||
{ Tab } | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters