blob: d8b3af7b5f1a2965a0353a6e374d271b1f5ae9e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import { ComponentMeta, ComponentStory } from '@storybook/react';
import ToCWidget from './table-of-contents';
/**
* TableOfContents - Storybook Meta
*/
export default {
title: 'Organisms/Widgets',
component: ToCWidget,
argTypes: {
wrapper: {
control: {
type: null,
},
description:
'A reference to the HTML element that contains the headings.',
type: {
name: 'string',
required: true,
},
},
},
} as ComponentMeta<typeof ToCWidget>;
const Template: ComponentStory<typeof ToCWidget> = (args) => (
<ToCWidget {...args} />
);
/**
* Widgets Stories - Table of Contents
*/
export const TableOfContents = Template.bind({});
TableOfContents.args = {};
|