Layout
Section
A band of a page with its eyebrow, title and lead; inverse is the dark band; compact is a titled group of a panel.
Server
Your instance
The round server runs as your own instance.
Installation
pnpm add @elsikora/keystone-ui-kitUsage
import { Section } from "@elsikora/keystone-ui-kit";import { Section } from "@elsikora/keystone-ui-kit";
export default function SectionDefaultExample() { return ( <Section eyebrow="Server" title="Your instance"> <p>The round server runs as your own instance.</p> </Section> );}Examples
Default
Server
Your instance
The round server runs as your own instance.
Inverse
One more thing
The inverse band flips light and dark.
Use it once per page at most.
Compact, in a panel
Round
| Phase | revealing |
|---|
Event
3 of 7: win
API reference
Section
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | - | The section's h2. |
eyebrow | string | - | A short line above the title. |
lead | ReactNode | - | A paragraph under the title. |
id | string | - | The anchor. |
tone | "default" | "inverse" | "default" | The dark band. |
variant | "band" | "compact" | "band" | A band of a page, or a titled group of a column or a panel (no page margins). |
className | string | - | Classes added to the section. |