Section
Secciones de página con ritmo vertical consistente, tonos de fondo y un encabezado con eyebrow, título, descripción y acciones.
Platform
Ship from a pull request
Everything between git push and production, without a pipeline to maintain.
Preview deploys
A URL for every branch, torn down on merge.
Edge caching
Static output served from 30 regions.
Rollbacks
Back to any previous build in one click.
Instalación
pnpm dlx nachui add sectionAnatomía
Section renderiza un section con padding vertical según size y un tono según background. Por defecto envuelve a sus hijos en un Container, así el fondo va de borde a borde mientras el contenido se queda en la grilla de la página. Pasa contained={false} para armar el contenido a tu manera, o un tamaño de container como "md" para angostarlo. Las partes del encabezado le dan a cada sección de una landing la misma jerarquía.Composición
Ejemplos
Predeterminado (Default)
Platform
Ship from a pull request
Everything between git push and production, without a pipeline to maintain.
Preview deploys
A URL for every branch, torn down on merge.
Edge caching
Static output served from 30 regions.
Rollbacks
Back to any previous build in one click.
Fondos
background="default"
Text and links inherit the right foreground.
background="muted"
Text and links inherit the right foreground.
background="primary"
Text and links inherit the right foreground.
background="inverted"
Text and links inherit the right foreground.
Centrado
Header con align="center" y bordered en la sección.Pricing
Pay for what you deploy
Free for hobby projects. Usage-based from the first team member, with no seat minimum.
Referencia de API
Section
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | Padding vertical |
background | 'default' | 'muted' | 'card' | 'primary' | 'inverted' | 'default' | Fondo y primer plano a juego |
bordered | boolean | false | Borde superior e inferior |
contained | boolean | ContainerSize | true | Envuelve a los hijos en un Container, con tamaño opcional |
as | React.ElementType | 'section' | Elemento a renderizar |
className | string | - | Clases CSS adicionales |
Section.Header
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
align | 'start' | 'center' | 'start' | Alineación de las partes del encabezado |
spacing | 'sm' | 'md' | 'lg' | 'md' | Espacio debajo del encabezado |
Section.Title
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
as | 'h1' | 'h2' | 'h3' | 'h4' | 'h2' | Nivel del heading |
Section.Eyebrow, Section.Description, Section.Actions
className y los atributos del elemento que renderiza.¿Encontraste algo que mejorar?
¿Notaste un error, tipografía o detalle faltante en esta página? Ayúdanos a mejorar la documentación abriendo un issue en GitHub.