mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +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:
60
libs/components/src/form-field/form-field.mdx
Normal file
60
libs/components/src/form-field/form-field.mdx
Normal file
@@ -0,0 +1,60 @@
|
||||
import { Meta, Canvas, Source, Primary, Controls } from "@storybook/addon-docs";
|
||||
|
||||
import * as stories from "./form-field.stories";
|
||||
|
||||
<Meta of={stories} />
|
||||
|
||||
```ts
|
||||
import { FormFieldModule } from "@bitwarden/components";
|
||||
```
|
||||
|
||||
# Field
|
||||
|
||||
<Primary />
|
||||
<Controls />
|
||||
|
||||
## Stories
|
||||
|
||||
### Default
|
||||
|
||||
<Canvas of={stories.Default} />
|
||||
|
||||
### Required
|
||||
|
||||
<Canvas of={stories.Required} />
|
||||
|
||||
### Hint
|
||||
|
||||
<Canvas of={stories.Hint} />
|
||||
|
||||
### Disabled
|
||||
|
||||
<Canvas of={stories.Disabled} />
|
||||
|
||||
### Readonly
|
||||
|
||||
<Canvas of={stories.Readonly} />
|
||||
|
||||
### Input Group
|
||||
|
||||
<Canvas of={stories.InputGroup} />
|
||||
|
||||
### Button Input Group
|
||||
|
||||
<Canvas of={stories.ButtonInputGroup} />
|
||||
|
||||
### Disabled Button Input Group
|
||||
|
||||
<Canvas of={stories.DisabledButtonInputGroup} />
|
||||
|
||||
### Select
|
||||
|
||||
<Canvas of={stories.Select} />
|
||||
|
||||
### Advanced Select
|
||||
|
||||
<Canvas of={stories.AdvancedSelect} />
|
||||
|
||||
### Textarea
|
||||
|
||||
<Canvas of={stories.Textarea} />
|
||||
Reference in New Issue
Block a user