Skip to content
Eskais UI

Layout

Section

A titled block of a page, composed from Card: eyebrow, title at a heading level, description, top-end action, footer; card, bare or dashed (create tile) surfaces and sm or md padding.

Example

Last 7 days

Deployments

Builds that reached production.

42

Create a project

Start from a template or an empty repo.

Installation

npx shadcn@latest add @eskais/section
Brings alongcard

Usage

Import
import { Section } from "@/components/ui/section"

API reference

Section

PropTypeDefault
titlerequiredReactNode–
eyebrowReactNode–
descriptionReactNode–
actionA control at the top end of the header, like a Button or a menu trigger.ReactNode–
headingLevelCardHeadingLevel2
surface`card` (default), `none` for a titled group without a box, `dashed` for a "create" tile.CardSurface"card"
padding`sm` tightens the inset for dense dashboards. Ignored without a surface."sm" | "md""md"
footerReactNode–
titleIdstring–

Also takes Card except title, surface.

Other exports

type SectionProps

Accessibility

  • A section named by its title, which is an h2 unless headingLevel says otherwise.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.