mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
[PM-9969] Papercut - Update component library storybook docs (#10191)
* add component import examples * component library story html formatting/cleanup nits * Update libs/components/src/dialog/dialog/dialog.mdx Co-authored-by: Will Martin <contact@willmartian.com> * Update libs/components/src/badge/badge.mdx Co-authored-by: Will Martin <contact@willmartian.com> * Update libs/components/src/dialog/simple-dialog/simple-dialog.mdx Co-authored-by: Will Martin <contact@willmartian.com> --------- Co-authored-by: Will Martin <contact@willmartian.com>
This commit is contained in:
30
libs/components/src/toast/toast.mdx
Normal file
30
libs/components/src/toast/toast.mdx
Normal file
@@ -0,0 +1,30 @@
|
||||
import { Meta, Canvas, Source, Primary, Controls } from "@storybook/addon-docs";
|
||||
|
||||
import * as stories from "./toast.stories";
|
||||
|
||||
<Meta of={stories} />
|
||||
|
||||
```ts
|
||||
import { ToastService } from "@bitwarden/components";
|
||||
```
|
||||
|
||||
# Toast
|
||||
|
||||
<Primary />
|
||||
<Controls />
|
||||
|
||||
## Stories
|
||||
|
||||
### Default
|
||||
|
||||
<Canvas of={stories.Default} />
|
||||
|
||||
### Long Content
|
||||
|
||||
Avoid using long messages in toasts.
|
||||
|
||||
<Canvas of={stories.LongContent} />
|
||||
|
||||
### Service
|
||||
|
||||
<Canvas of={stories.Service} />
|
||||
Reference in New Issue
Block a user