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.
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
| Prop | Type | Description |
|---|---|---|
| background? | "body" | "bodyAlt"Default: "bodyAlt" | The background of the component |
| children? | ReactNode | |
| image? | ReactNode | The hero image |
| Prop | Type | Description |
|---|---|---|
| children | ReactNode |
| Prop | Type | Description |
|---|---|---|
| children | ReactNode |
| Prop | Type | Description |
|---|---|---|
| children | ReactNode |
| Prop | Type | Description |
|---|---|---|
| background? | "body" | "bodyAlt"Default: "bodyAlt" | The background of the component |
| children? | ReactNode | |
| image? | ReactNode | The hero image |
| Prop | Type | Description |
|---|---|---|
| children | ReactNode |
| Prop | Type | Description |
|---|---|---|
| children | ReactNode |
| Prop | Type | Description |
|---|---|---|
| background? | "body" | "bodyAlt"Default: "bodyAlt" | The background of the component |
| children? | ReactNode |
| Prop | Type | Description |
|---|---|---|
| children | ReactNode |
Source
You can view the full source code for this package on Github.