mirror of https://github.com/grafana/grafana
Created Legend.mdx (#26146)
Add simple docs to legend component Signed-off-by: Oana <oana.mangiurea@gmail.com>pull/26170/head
parent
14209c0ed1
commit
84bf94709e
@ -0,0 +1,23 @@ |
||||
import { Story, Preview, Props } from '@storybook/addon-docs/blocks'; |
||||
import { Legend } from './Legend'; |
||||
|
||||
<Meta title="MDX|Legend" component={Legend} /> |
||||
|
||||
# Legend |
||||
|
||||
|
||||
### When to use |
||||
|
||||
Legend should be used to add a caption to a group of related form elements that have been grouped toegheter into a `FieldSet`. |
||||
|
||||
|
||||
### Usage |
||||
|
||||
```jsx |
||||
import { Forms } from '@grafana/ui'; |
||||
|
||||
<Legend>{label}</Legend> |
||||
``` |
||||
|
||||
### Props |
||||
<Props of={Legend} /> |
||||
Loading…
Reference in new issue