generated from eea/volto-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #140454 updated Breadcrumbs.jsx to latest version:
- Added also the storybook test from volto as a comparison to the DemoStories storybook
- Loading branch information
1 parent
23dcf16
commit 63fe507
Showing
2 changed files
with
48 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/customizations/components/theme/Breadcrumbs/Breadcrumbs.stories.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks'; | ||
import { BreadcrumbsComponent } from './Breadcrumbs'; | ||
import { injectIntl } from 'react-intl'; | ||
|
||
<Meta title="Breadcrumbs" /> | ||
|
||
# Breadcrumbs | ||
|
||
With `MDX` we can define a story for `Breadcrumbs` right in the middle of our | ||
markdown documentation. Use the `args` for defining Storybook controls handlers. | ||
|
||
export const Breadcrumbs = (args) => ( | ||
<BreadcrumbsComponent | ||
pathname="" | ||
items={[ | ||
{ | ||
'@id': 'https://volto.kitconcept.com/api/Members', | ||
title: 'Users', | ||
}, | ||
]} | ||
getBreadcrumbs={() => {}} | ||
{...args} | ||
/> | ||
); | ||
|
||
<Story name="Breadcrumbs">{injectIntl(Breadcrumbs).bind({})}</Story> | ||
|
||
# Props | ||
|
||
<ArgsTable of={BreadcrumbsComponent} /> |