import { Story, Canvas, ArgsTable } from '@storybook/addon-docs';
import { HeaderBase } from './header-base';
### This is a base component. It should not be used in your feature code directly but as a "base" for other UI components
# HeaderBase
The `HeaderBase` component is a reusable UI component for displaying a header with optional startAccessory, children (title) and endAccessory content areas. It is designed to be flexible and customizable for various use cases to keep a visually balanced appearance.
## Props
The `HeaderBase` accepts all props below as well as all [Box](/docs/components-ui-box--default-story#props) component props
### Children
Wrapping content in the `HeaderBase` component will be rendered in the center of the header.
Use the `childrenWrapperProps` prop to customize the wrapper element around the `children` content.
```jsx
import { HeaderBase, Text } from '../../component-library';
import {
TEXT_ALIGN,
TextVariant,
} from '../../../helpers/constants/design-system';
Title is sentence case no period
;
```
### startAccessory
Using the `startAccessory` prop will render the content in the start (left) side of the header.
Use the `startAccessoryWrapperProps` prop to customize the wrapper element around the `startAccessory` content.
```jsx
import {
HeaderBase,
Text,
ButtonIcon,
ButtonIconSize,
IconName,
} from '../../component-library';
import {
TEXT_ALIGN,
TextVariant,
} from '../../../helpers/constants/design-system';
}
>
Title is sentence case no period
;
```
### endAccessory
Using the `endAccessory` prop will render the content in the end (right) side of the header.
Use the `endAccessoryWrapperProps` prop to customize the wrapper element around the `endAccessory` content.
```jsx
import {
ButtonIcon,
ButtonIconSize,
HeaderBase,
IconName,
Text,
} from '../../component-library';
import {
TEXT_ALIGN,
TextVariant,
} from '../../../helpers/constants/design-system';
}
>
Title is sentence case no period
;
```
### Use Case Demos
Some examples of how the `HeaderBase` component can be used in various use cases with background colors set for visual aid.