Header

Header @class Header @extends {React.Component}

Best practices

  • Full width
  • Set height

Properties

Basic usage

Props:

Prop NameTypeIs RequiredDefault ValueDescription
activebooloptionaltrueIs the mobile menu active?
siteTitlestringoptional'Your site name'The website title (from gatsby-config.js)
toggleSidebarfuncoptionalfalseChanges active state of sidebar