> For the complete documentation index, see [llms.txt](https://docs.usegravity.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usegravity.app/gravity-web/components/header.md).

# Header

The `Header` component provides a header section with a title and optional children components.

### Preview

<div align="left"><figure><img src="/files/J9vlsNN0wdfgaA5Nzilr" alt="Gravity header component" width="563"><figcaption></figcaption></figure></div>

### Usage

```javascript
import { Header } from 'components/lib';

function MyComponent({ ...props }) {
  return (
    <Header title='My View Title'>
      <p>Optional content goes here.</p>
    </Header>
  );
}
```

### Props

| Prop     | Description        | Required | Value        |
| -------- | ------------------ | -------- | ------------ |
| children | children to render | optional | component(s) |
| title    | title of the view  | required | string       |

### Notes

* The `title` prop provides the title for the header section.
* The `children` prop allows for rendering additional components within the header.
