import { Meta, ArgTypes } from '@storybook/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 together into a `FieldSet`.

## Usage

```jsx
import { Legend } from '@grafana/ui';

<Legend>{label}</Legend>;
```

## Props

<ArgTypes of={Legend} />
