@@ -16,6 +16,7 @@ import Heart from '../s2wf-icons/S2_Icon_Heart_20_N.svg';
1616import type { Meta } from '@storybook/react' ;
1717import { style } from '../style/spectrum-theme' with { type : 'macro' } ;
1818import { Tab , TabList , TabPanel , Tabs } from '../src/Tabs' ;
19+ import { Text } from '@react-spectrum/s2' ;
1920
2021const meta : Meta < typeof Tabs > = {
2122 component : Tabs ,
@@ -30,7 +31,7 @@ export default meta;
3031export const Example = ( args : any ) => (
3132 < Tabs { ...args } styles = { style ( { width : 450 , height : 256 } ) } >
3233 < 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 >
3435 < Tab id = "MaR" > Monarchy and Republic</ Tab >
3536 < Tab id = "Emp" > Empire</ Tab >
3637 </ TabList >
@@ -56,7 +57,7 @@ export const Example = (args: any) => (
5657export const Disabled = ( args : any ) => (
5758 < Tabs { ...args } styles = { style ( { width : 450 , height : 144 } ) } disabledKeys = { [ 'FoR' , 'MaR' , 'Emp' ] } >
5859 < 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 >
6061 < Tab id = "MaR" > Monarchy and Republic</ Tab >
6162 < Tab id = "Emp" > Empire</ Tab >
6263 </ TabList >
@@ -73,11 +74,11 @@ export const Disabled = (args: any) => (
7374) ;
7475
7576export const Icons = ( args : any ) => (
76- < Tabs { ...args } styles = { style ( { width : 208 , height : 144 } ) } >
77+ < Tabs { ...args } styles = { style ( { width : 208 , height : 144 } ) } iconOnly >
7778 < 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 >
8182 </ TabList >
8283 < TabPanel id = "FoR" >
8384 Arma virumque cano, Troiae qui primus ab oris.
0 commit comments