import { Meta, Story, ArgsTable, Canvas } from '@storybook/blocks';
import { TableContentFromObject, FormOutput } from '../../../../../tools/docTools';
import * as HeaderAnnouncementBarStories from './HeaderAnnouncementBar.stories';

import HeaderAnnouncementBar from '../HeaderAnnouncementBar';

export const settingsDocs = {};

<Meta of={HeaderAnnouncementBarStories} />

# HeaderAnnouncementBar

<br />

## `HeaderAnnouncementBars` are used to display an announcement in the header

<br />

### Default

<Canvas>
  <Story of={HeaderAnnouncementBarStories.Default} />
</Canvas>

## Usage Example

```jsx
import HeaderAnnouncementBar
from '@appdirect/sfb-theme-components/src/components/header/atoms/header-announcement-bar/HeaderAnnouncementBar';

<HeaderAnnouncementBar />
```

## Props

<ArgsTable of={HeaderAnnouncementBar} />

## Schema

### Form Settings

<table>
  <TableContentFromObject obj={settingsDocs} />
</table>

### Form Output

<FormOutput code={HeaderAnnouncementBar.schema().form} />
