Skip to content

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

Terminal
pnpm add @elsikora/keystone-ui-kit

Usage

Import
import { Section } from "@elsikora/keystone-ui-kit";
docs/section/default.example.tsx
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

Phaserevealing

Event

3 of 7: win

API reference

Section

PropTypeDefaultDescription
titlestring-The section's h2.
eyebrowstring-A short line above the title.
leadReactNode-A paragraph under the title.
idstring-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).
classNamestring-Classes added to the section.