Articlecomponent
Article({ as: Element = "article", children, ...variants }: SectionProps): ReactElement| Param | Type | |
|---|---|---|
variants | SectionProps | Props for Section and its semantic siblings — colour, space, typography, and width variants plus an optional as element override. required |
.as | BlockElement | Element this <Section> renders as, e.g. "header" to output a "<header>" Defaults to "section" |
| Return | |
|---|---|
ReactElement | Rendered <article> element. |
<article> block with section-level spacing.
- Use a
<Card>instead to display boxed content.