You are viewing a PR preview for PR #1506

Agriculture Design System
Beta
Design System for the Export Service

Header

The Header is the masthead of our applications. It incorporates the Department of Agriculture, Fisheries and Forestry Coat of Arms logo and provides a user context on where they are.

View in FigmaView in StorybookView in Github
import { ... } from '@ag.ds-next/react/header';
Open in Playroom, opens in a new tab
<Box palette="dark">
	<Header
		heading="Export Service"
		subline="Supporting Australian agricultural exports"
		logo={<Logo />}
		background="bodyAlt"
		badgeLabel="Beta"
	/>
</Box>

Do

  • use the examples from the gallery
  • change the text to suit your application.

Don't

  • add unsupported elements such as avatars or drop downs.

Heading and Subline

Heading should be set to the website or service title.

Subline can provide additional information to describe your website or service.

Badge

We use a badge to indicate if an application is in a prerelease state. Use the badgeLabel prop to implement.

Size

The size prop can be used to control the vertical height of the Header. Use the sm variant for internal applications where space is limited.

<Box palette="dark">
	<Header
		heading="Export Service"
		subline="Supporting Australian agricultural exports"
		logo={<Logo />}
		background="bodyAlt"
		size="sm"
	/>
</Box>
  • Main nav The main nav is the primary way users navigate the user interface. It is consistently visible throughout the service.