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

import Clear from './';
import { lightTheme } from '../../../../theme/';
import { GlobalStyles } from '../../../../theme/GlobalStyles';
import * as ClearStories from './Clear.stories.tsx';

<Meta of={ClearStories} />

# Clear Icon

The Clear component creates an icon with `X` using inline SVG. Typically, you can use it to indicate that the content can be closed or suppressed.

## Importing

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

## Example

<ThemeProvider theme={lightTheme}>
  <GlobalStyles />
  <Canvas>
    <Clear width="2rem" />
  </Canvas>
</ThemeProvider>

```jsx
<Clear width="2rem" />
```

## Props

<ArgTypes of={Clear} />
