import { Canvas, Meta, ArgTypes } from '@storybook/blocks';
import { ThemeProvider } from 'styled-components';

import Label from './';
import { lightTheme } from '../../../theme/';
import { GlobalStyles } from '../../../theme/GlobalStyles';
import * as LabelStories from './Label.stories.tsx';

<Meta of={LabelStories} />

# Label

The Label component displays a caption for an item in a user interface.

## Importing

```javascript
import { Label } from 'amazon-chime-sdk-component-library-react';
```

## Example

<ThemeProvider theme={lightTheme}>
  <GlobalStyles />
  <Canvas>
    <Label>Hello World</Label>
  </Canvas>
</ThemeProvider>

```jsx
<Flex layout="fill-space-centered">
  <Label>Hello World</Label>
</Flex>
```

## Props

<ArgTypes of={Label} />
