Agriculture Design System
Beta
Design System for the Export Service

Content

A collection of simple layout containers to wrap content.

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

Usage

Content components can be imported via the content entrypoint in the @ag.ds-next/react package.

For example:

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

Props

PageContent Props
PropTypeDescription
as?ElementType<any>Default: "div"
background?ResponsiveProp<"body" | "info" | "success" | "error" | "warning" | "shade" | "bodyAlt" | "shadeAlt">
Maps tokens to the CSS background-color property.https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
children?ReactNode
id?string
palette?ResponsiveProp<"dark" | "light">
Sets the colour palette, which can also be changed at breakpoints.https://design-system.agriculture.gov.au/foundations/tokens/colour
tabIndex?number
SectionContent Props
PropTypeDescription
as?ElementType<any>Default: "section"
background?ResponsiveProp<"body" | "info" | "success" | "error" | "warning" | "shade" | "bodyAlt" | "shadeAlt">
Maps tokens to the CSS background-color property.https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
children?ReactNode
id?string
palette?ResponsiveProp<"dark" | "light">
Sets the colour palette, which can also be changed at breakpoints.https://design-system.agriculture.gov.au/foundations/tokens/colour
tabIndex?number
Content Props
PropTypeDescription
as?ElementType<any>Default: "div"
background?ResponsiveProp<"body" | "info" | "success" | "error" | "warning" | "shade" | "bodyAlt" | "shadeAlt">
Maps tokens to the CSS background-color property.https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
children?ReactNode
id?string
palette?ResponsiveProp<"dark" | "light">
Sets the colour palette, which can also be changed at breakpoints.https://design-system.agriculture.gov.au/foundations/tokens/colour
tabIndex?number
ContentBleed Props
PropTypeDescription
children?ReactNode
visible?ResponsiveProp<boolean>

Source

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