Section
Use this as the main wrapper for your full-width sections.
A section with equal columns
On mobile it's a single column, of course. All without having to think about responsiveness. It just works. Have a look at the code, it's down below.
Props
Prop | Type | Default |
---|---|---|
structure | column | split | spread | column |
frame | fill | viewport | contain | panel | fill |
variant | ghost | subtle | outline | soft | surface | ghost |
align | start | center | end | start |
size | sm | md | lg | - |
compact | attribute | - |
theme | string | - |
text | string | - |
html | string | - |
as | HTMLTag | section |
HTML Attributes | Polymorphic<as> | - |
Examples
variant
Sets the color variant used for this component and all its children.
structure
Applies all styles & props of the chosen Structure
component to this component.
column
Structures children in a vertical stack and sets dynamic margins between them.
For example, the margin between a heading and a paragraph is smaller than the margin between a paragraph an image.
split
Equal columns above a certain breakpoint, based on CSS grid.
On small screens it behaves the same as column
.
spread
Structures children in a row with space between them and wrapping.