Skip to content
ZikZuk UI

Section

Stripe PageModule / Accordion

The block every page is built from: a semibold heading with an optional grey count, quiet teal text actions on the right, a hairline, then the content on the canvas — no box. collapsible turns it into an accordion whose heading toggles it.

pnpm add @zikzuk/ui
import { Section, SectionAction, SectionLink } from "@zikzuk/ui";

With actions, and collapsible

Rules 2

Messages sent when something happens.

When to use

  • Grouping content on a record page or settings page.
  • Optional detail such as Metadata: collapsible, closed by default.

Not for

  • Wrapping a page's main content in a card.

Props

PropTypeDescription
titleReactNodeThe heading.
descriptionReactNodeOne grey line under the heading.
countnumberA grey count after the title.
actionsReactNodeSectionAction / SectionLink text links.
collapsibleboolean
Default false
The heading toggles the content.
defaultOpenboolean
Default true
Starting state when uncontrolled.
open / onOpenChangeboolean / (open) => voidControlled state.
contentClassNamestringClasses on the content wrapper.
classNamestringExtra classes on the outer element.