Skip to content
Components

Section heading

Title a shelf or section, with a small eyebrow label above it.

TS
import { … } from "@fungi.computer/caps/blocks/section-heading";

Hero

TSX
import {
SectionHeading,
Eyebrow,
} from "@fungi.computer/caps/blocks/section-heading";
export default function Hero() {
return (
<div className="flex flex-col gap-2xs">
<Eyebrow tone="live">Live</Eyebrow>
<SectionHeading>Current fruiting</SectionHeading>
</div>
);
}

Eyebrow tones

TSX
import {
Eyebrow,
type EyebrowTone,
} from "@fungi.computer/caps/blocks/section-heading";
const tones: EyebrowTone[] = ["quiet", "primary", "secondary", "live"];
export default function EyebrowTones() {
return (
<div className="flex flex-col gap-2xs">
{tones.map((tone) => (
<Eyebrow key={tone} tone={tone}>
{tone}
</Eyebrow>
))}
</div>
);
}

Props

EyebrowProps

PropTypeDescription
tone?"quiet" | "primary" | "secondary" | "live"
  • tone?"quiet" | "primary" | "secondary" | "live"

Full types: API reference.