import { ComponentMeta, ComponentStory } from '@storybook/react'; import { Breadcrumb } from './breadcrumb'; /** * Breadcrumb - Storybook Meta */ export default { title: 'Molecules/Navigation/Breadcrumb', component: Breadcrumb, argTypes: { className: { control: { type: 'text', }, table: { category: 'Styles', }, description: 'Set additional classnames to the nav element.', type: { name: 'string', required: false, }, }, itemClassName: { control: { type: 'text', }, table: { category: 'Styles', }, description: 'Set additional classnames to the breadcrumb items.', type: { name: 'string', required: false, }, }, items: { description: 'The breadcrumb items.', type: { name: 'object', required: true, value: {}, }, }, }, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); /** * Breadcrumb Stories - One item */ export const OneItem = Template.bind({}); OneItem.args = { items: [{ id: 'home', url: '#', name: 'Home' }], }; /** * Breadcrumb Stories - Two items */ export const TwoItems = Template.bind({}); TwoItems.args = { items: [ { id: 'home', url: '#', name: 'Home' }, { id: 'blog', url: '#', name: 'Blog' }, ], }; /** * Breadcrumb Stories - Three items */ export const ThreeItems = Template.bind({}); ThreeItems.args = { items: [ { id: 'home', url: '#', name: 'Home' }, { id: 'blog', url: '#', name: 'Blog' }, { id: 'post1', url: '#', name: 'A Post' }, ], }; mmit/public/prism/prism-plsql.js?id=53b63ac27c2275262db9a04be02210a3287aa71d'>commitdiffstats
blob: 4864f1971e8ca6f3bf31de14e689939b41ef40a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18