(false).',
table: {
category: 'Appearance',
type: { summary: 'boolean' },
defaultValue: { summary: 'false' },
},
},
className: {
description: 'Add custom class names to the Divider.',
table: {
category: 'Appearance',
type: { summary: 'string' },
},
},
testId: {
description: 'Add a data-testid attribute for testing.',
table: {
category: 'Testing',
type: { summary: 'string' },
},
},
},
args: {
isContent: false,
className: '',
testId: '',
level: 'section',
},
};
export default meta;
type Story = StoryObj
;
export const Playground: Story = {
args: {
level: 'section',
},
};
/**
* There are three different types of divider – `section`, `subsection`, and `content` –
* each designed to visually separate or group content.
* [Design documentation](https://wise.design/components/divider)
*/
export const Level: Story = {
argTypes: {
...hideControls(['testId', 'className', 'isContent']),
},
args: {
level: 'section',
},
};
/**
* The `isContent` prop determines whether the divider is rendered as a semantic `
` or a non-semantic ``.
*/
export const ContentDivider: Story = {
argTypes: {
...hideControls(['level', 'testId', 'className']),
},
args: {
isContent: true,
},
};
export const AllVariants: Story = {
render: function Render() {
return (
<>
>
);
},
argTypes: {
...hideControls(['level', 'testId', 'className', 'isContent']),
},
};