mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
* 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>
31 lines
446 B
Plaintext
31 lines
446 B
Plaintext
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} />
|