Skip to content
Gravity Logo / Docs Gravity home
Browse documentation
Documentation/Gravity Web

Header

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

Usage

import { Header } from 'components/lib';

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

Props

PropDescriptionRequiredValue
childrenchildren to renderoptionalcomponent(s)
titletitle of the viewrequiredstring

Notes

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