-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(local only storybook): add local story stubs for FiltersList, ad…
…d documentation for local-dev tag in storybook/README.md
- Loading branch information
1 parent
14b5bbb
commit 7eec9a6
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/components/filters/filters-list/src/filters-list.readme.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,6 @@ | ||
import { Meta, Markdown } from '@storybook/blocks'; | ||
import ReadMe from './../README.md?raw' | ||
|
||
<Meta tags={['local-dev']} title="components/Filters/FiltersList/Readme" /> | ||
|
||
<Markdown>{ReadMe}</Markdown> |
22 changes: 22 additions & 0 deletions
22
packages/components/filters/filters-list/src/filters-list.stories.tsx
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,22 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import FiltersList from './filters-list'; | ||
|
||
const meta: Meta<typeof FiltersList> = { | ||
title: 'components/Filters/FiltersList', | ||
component: FiltersList, | ||
tags: ['local-dev'], | ||
argTypes: { | ||
label: { | ||
control: 'text', | ||
}, | ||
}, | ||
}; | ||
export default meta; | ||
|
||
type Story = StoryObj<typeof FiltersList>; | ||
|
||
export const BasicExample: Story = { | ||
args: { | ||
label: 'A list of filters', | ||
}, | ||
}; |
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