Section

A full-width page band with consistent vertical rhythm. Put a Container inside.

Status: stable. Category: Layout.

import { Section } from '@glyphui/ui'

Exports: Section, sectionStyles.

Section props

PropTypeDefaultDescription
asChildboolean
dividedboolean
spacing"none" | "sm" | "md" | "lg"
tone"default" | "subtle"

Example: Page bands

import { Container, Heading, Section, Text } from '@glyphui/ui'

export default function Example() {
  return (
    <div className="overflow-hidden rounded-lg border border-border">
      <Section spacing="sm">
        <Container size="md">
          <Heading level={3}>Default band</Heading>
          <Text tone="muted">spacing="sm" for compact pages.</Text>
        </Container>
      </Section>
      <Section spacing="sm" tone="subtle" divided>
        <Container size="md">
          <Heading level={3}>Subtle, divided band</Heading>
          <Text tone="muted">Alternate tones to separate page sections.</Text>
        </Container>
      </Section>
    </div>
  )
}

Live page: https://glyphui.xyz/components/section