Skip to content

Commit 4c2b72e

Browse files
feat(tabs): separate tab extension configuration into a new story
1 parent 56fab21 commit 4c2b72e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/ui-components/src/Common/CodeTabs/index.stories.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,23 @@ const TabsContent: FC = () => (
6161

6262
export const Default: Story = {};
6363

64+
export const WithExtension: Story = {
65+
args: {
66+
tabs: [
67+
{ key: 'mjs', label: 'Example', extension: 'MJS' },
68+
{ key: 'cjs', label: 'Example', extension: 'CJS' },
69+
],
70+
},
71+
};
72+
6473
export default {
6574
component: CodeTabs,
6675
args: {
6776
children: <TabsContent />,
6877
defaultValue: 'mjs',
6978
tabs: [
70-
{ key: 'mjs', label: 'Example', extension: 'MJS' },
71-
{ key: 'cjs', label: 'Example', extension: 'CJS' },
79+
{ key: 'mjs', label: 'Example' },
80+
{ key: 'cjs', label: 'Example' },
7281
],
7382
},
7483
} as Meta;

0 commit comments

Comments
 (0)