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 PropsProp | Type | Description |
---|
background? | "body" | "bodyAlt"Default: "bodyAlt" | The background of the component |
children? | ReactNode | |
image? | ReactNode | The hero image |
HeroBannerTitleContainer PropsProp | Type | Description |
---|
children | ReactNode | |
HeroBannerTitle PropsProp | Type | Description |
---|
children | ReactNode | |
HeroBannerSubtitle PropsProp | Type | Description |
---|
children | ReactNode | |
HeroCategoryBanner PropsProp | Type | Description |
---|
background? | "body" | "bodyAlt"Default: "bodyAlt" | The background of the component |
children? | ReactNode | |
image? | ReactNode | The hero image |
HeroCategoryBannerTitle PropsProp | Type | Description |
---|
children | ReactNode | |
HeroCategoryBannerSubtitle PropsProp | Type | Description |
---|
children | ReactNode | |
HeroSubcategoryBanner PropsProp | Type | Description |
---|
background? | "body" | "bodyAlt"Default: "bodyAlt" | The background of the component |
children? | ReactNode | |
HeroSubcategoryBannerTitle PropsProp | Type | Description |
---|
children | ReactNode | |
Source
You can view the full source code for this package on Github.