apx-dsv0.1Local renderer · live
K
Foundations4
  • Getting started
  • Theming
  • Templates
  • Icons
  • Avatar
  • Badge
  • DataGrid
  • Scheduler
  • Stat
  • Table
  • Timeline
  • TreeView
  • Accordion
  • Alert
  • EmptyState
  • Progress
  • Skeleton
  • Spinner
  • SplashScreen
  • Toast
  • ColorPicker
  • FileUpload
  • Form
  • Rating
  • TagsInput
  • Combobox
  • Field
  • Select
  • Toggle
  • Button
  • Calendar
  • Checkbox
  • DatePicker
  • Input
  • NumberInput
  • Radio
  • Slider
  • Switch
  • Textarea
  • AppShell
  • Div
  • Divider
  • Marquee
  • Parallax
  • Reveal
  • Section
  • SectionHeading
  • Sidebar
  • Stack
  • Surface
  • Typography
  • Image
  • Breadcrumbs
  • Carousel
  • NavigationMenu
  • Pagination
  • Stepper
  • Tabs
  • Toolbar
  • CommandPalette
  • Confirm
  • Drawer
  • HoverCard
  • Menu
  • Modal
  • Popover
  • Tooltip
  • Icon
  • Card
  • PricingCard
66 componentsapx-ds/renderer
Section
Variant↳ other

Layout

Section

One page band — ground, container and vertical rhythm in a single element. Composes Surface rather than sitting beside it, so a template never has to remember a wrapper order that breaks the tone capture silently when reversed. Four rhythm steps and four widths, all named rather than numeric, so templates cannot drift into different vertical rhythms.

Props

PropTypeDefaultDescription
asElementType—Render as a different element — `section`, `footer`, `aside`. Default: `'div'`. A dark band is usually a landmark, so reach for the semantic tag.
atmosphereboolean | SectionAtmosphere—Atmospheric background — two offset radial washes, which is what reads as *light* rather than as a band. `true` uses the defaults; an object tunes the roles and the anchor.
colorSchemeenum—Overrides the `color-scheme` a non-`default` tone declares. `color-scheme` is the one thing tokens cannot express: it drives the parts of a form control the page does not own — the caret, the `<select>` arrow, scrollbars, autofill — and CSS has no way to ask "is this ground dark?". `inverted` and the brand tones therefore declare `dark`, which is right for `inverted` always and for a brand role whose fill is saturated and whose `contrast` is white (the overwhelmingly common case, and the DS default for `primary` and `secondary`). A brand that authors a *pale* fill — the default `warning` role is `#f59e0b` on `#111827` ink, and a theme is free to make `primary` look like that — needs `colorScheme="light"` here, or an `<Input>` in the band gets a white caret on a yellow field. Set it when the tone's ink is dark.
containerClassNamestring—Extra classes for the inner container, where `className` styles the outer ground.
rhythmenum—Vertical rhythm. Defaults to `'default'`.
styleCSSProperties—Inline style. Merged last, so it wins.
sxSx—Theme-aware inline style object. Merged after the recipe's own style.
toneenum—Ground for this band and everything in it — forwarded straight to `Surface`.
widthenum—Content width. Defaults to `'default'`.