@@ -16,6 +16,7 @@ import Heart from '../s2wf-icons/S2_Icon_Heart_20_N.svg';
16
16
import type { Meta } from '@storybook/react' ;
17
17
import { style } from '../style/spectrum-theme' with { type : 'macro' } ;
18
18
import { Tab , TabList , TabPanel , Tabs } from '../src/Tabs' ;
19
+ import { Text } from '@react-spectrum/s2' ;
19
20
20
21
const meta : Meta < typeof Tabs > = {
21
22
component : Tabs ,
@@ -30,7 +31,7 @@ export default meta;
30
31
export const Example = ( args : any ) => (
31
32
< Tabs { ...args } styles = { style ( { width : 450 , height : 256 } ) } >
32
33
< TabList aria-label = "History of Ancient Rome" >
33
- < Tab id = "FoR" > < Edit /> Founding of Rome</ Tab >
34
+ < Tab id = "FoR" > < Edit /> < Text > Founding of Rome</ Text > </ Tab >
34
35
< Tab id = "MaR" > Monarchy and Republic</ Tab >
35
36
< Tab id = "Emp" > Empire</ Tab >
36
37
</ TabList >
@@ -56,7 +57,7 @@ export const Example = (args: any) => (
56
57
export const Disabled = ( args : any ) => (
57
58
< Tabs { ...args } styles = { style ( { width : 450 , height : 144 } ) } disabledKeys = { [ 'FoR' , 'MaR' , 'Emp' ] } >
58
59
< TabList aria-label = "History of Ancient Rome" >
59
- < Tab id = "FoR" > < Edit /> Founding of Rome</ Tab >
60
+ < Tab id = "FoR" > < Edit /> < Text > Founding of Rome</ Text > </ Tab >
60
61
< Tab id = "MaR" > Monarchy and Republic</ Tab >
61
62
< Tab id = "Emp" > Empire</ Tab >
62
63
</ TabList >
@@ -73,11 +74,11 @@ export const Disabled = (args: any) => (
73
74
) ;
74
75
75
76
export const Icons = ( args : any ) => (
76
- < Tabs { ...args } styles = { style ( { width : 208 , height : 144 } ) } >
77
+ < Tabs { ...args } styles = { style ( { width : 208 , height : 144 } ) } iconOnly >
77
78
< TabList aria-label = "History of Ancient Rome" >
78
- < Tab id = "FoR" aria-label = "Edit" > < Edit /> </ Tab >
79
- < Tab id = "MaR" aria-label = "Notifications" > < Bell /> </ Tab >
80
- < Tab id = "Emp" aria-label = "Likes" > < Heart /> </ Tab >
79
+ < Tab id = "FoR" aria-label = "Edit" > < Edit /> < Text > Edit </ Text > < /Tab >
80
+ < Tab id = "MaR" aria-label = "Notifications" > < Bell /> < Text > Notifications </ Text > < /Tab >
81
+ < Tab id = "Emp" aria-label = "Likes" > < Heart /> < Text > Likes </ Text > < /Tab >
81
82
</ TabList >
82
83
< TabPanel id = "FoR" >
83
84
Arma virumque cano, Troiae qui primus ab oris.
0 commit comments