Agriculture Design System
Beta
Design System for the Export Service

Hero banner

The hero banner sits at the top of the page under the Main nav and is used to grab a user’s attention.

View in FigmaView in StorybookView in Github
import { ... } from '@ag.ds-next/react/hero-banner';

Usage

Hero banner components can be imported via the hero-banner entrypoint in the @ag.ds-next/react package.

For example:

import { ... } from '@ag.ds-next/react/hero-banner';

Props

HeroBanner Props
PropTypeDescription
background?"body" | "bodyAlt"Default: "bodyAlt"
The background of the component
children?ReactNode
image?ReactNode
The hero image
HeroBannerTitleContainer Props
PropTypeDescription
childrenReactNode
HeroBannerTitle Props
PropTypeDescription
childrenReactNode
HeroBannerSubtitle Props
PropTypeDescription
childrenReactNode
HeroCategoryBanner Props
PropTypeDescription
background?"body" | "bodyAlt"Default: "bodyAlt"
The background of the component
children?ReactNode
image?ReactNode
The hero image
HeroCategoryBannerTitle Props
PropTypeDescription
childrenReactNode
HeroCategoryBannerSubtitle Props
PropTypeDescription
childrenReactNode
HeroSubcategoryBanner Props
PropTypeDescription
background?"body" | "bodyAlt"Default: "bodyAlt"
The background of the component
children?ReactNode
HeroSubcategoryBannerTitle Props
PropTypeDescription
childrenReactNode

Source

You can view the full source code for this package on Github.