File tree 2 files changed +23
-5
lines changed
2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change
1
+ import { Tabs , TabLink } from "./Tabs" ;
2
+ import type { Meta , StoryObj } from "@storybook/react" ;
3
+
4
+ const meta : Meta < typeof Tabs > = {
5
+ title : "components/Tabs" ,
6
+ component : Tabs ,
7
+ } ;
8
+
9
+ export default meta ;
10
+ type Story = StoryObj < typeof Tabs > ;
11
+
12
+ export const Default : Story = {
13
+ args : {
14
+ children : (
15
+ < >
16
+ < TabLink to = "" > Tab 1</ TabLink >
17
+ < TabLink to = "tab-3" > Tab 2</ TabLink >
18
+ < TabLink to = "tab-4" > Tab 3</ TabLink >
19
+ </ >
20
+ ) ,
21
+ } ,
22
+ } ;
Original file line number Diff line number Diff line change @@ -29,11 +29,7 @@ interface TabLinkProps extends NavLinkProps {
29
29
className ?: string ;
30
30
}
31
31
32
- export const TabLink : FC < TabLinkProps > = ( {
33
- className,
34
- children,
35
- ...linkProps
36
- } ) => {
32
+ export const TabLink : FC < TabLinkProps > = ( { className, ...linkProps } ) => {
37
33
const tabLink = useClassName ( classNames . tabLink , [ ] ) ;
38
34
const activeTabLink = useClassName ( classNames . activeTabLink , [ ] ) ;
39
35
You can’t perform that action at this time.
0 commit comments