Section intro: icon tile, display heading, description and actions.
import { SectionHeader, IconTile, Highlight } from "@kivu-ui/react"On this page
import { SectionHeader, IconTile, Highlight } from "@kivu-ui/react";Timelines
Drag tasks across weeks, see who is overloaded, and share a read-only link with clients.
import { Button, Highlight, SectionHeader } from "@kivu-ui/react";
const BoardIcon = () => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round">
<path d="M4 4h16v16H4zM9.5 4v16M15 4v16" />
</svg>
);
export default function Demo() {
return (
<SectionHeader
icon={<BoardIcon />}
eyebrow="Timelines"
title={<>Plan every project on <Highlight>one</Highlight> board</>}
description="Drag tasks across weeks, see who is overloaded, and share a read-only link with clients."
actions={
<>
<Button>Try timelines</Button>
<Button variant="soft">Watch the demo</Button>
</>
}
/>
);
}Invoices
Reports
import { SectionHeader } from "@kivu-ui/react";
export default function Demo() {
return (
<div className="w-full space-y-10">
<SectionHeader align="start" eyebrow="Invoices" title="Bill clients straight from tracked time" />
<div className="rounded-kivu-xl bg-primary-600 p-10">
<SectionHeader inverted eyebrow="Reports" title="See where the hours really go" />
</div>
</div>
);
}The rounded-square icon holder on its own, in soft and solid variants.
import { IconTile } from "@kivu-ui/react";
const Spark = () => (
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round">
<path d="M12 3v6M12 15v6M3 12h6M15 12h6" />
</svg>
);
export default function Demo() {
return (
<div className="flex flex-wrap items-center gap-6">
<IconTile size="sm"><Spark /></IconTile>
<IconTile><Spark /></IconTile>
<IconTile size="lg" tone="accent"><Spark /></IconTile>
<IconTile variant="solid"><Spark /></IconTile>
<IconTile size="lg" variant="solid" tone="accent"><Spark /></IconTile>
</div>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | - | Required. The heading. |
eyebrow | ReactNode | - | Small uppercase label above the title. |
description | ReactNode | - | Paragraph under the title. |
icon | ReactNode | - | Rendered inside an IconTile. |
actions | ReactNode | - | Buttons under the text. |
align | "center" | "start" | "center" | Text alignment. |
as | "h1" | "h2" | "h3" | "h2" | Heading level. |
inverted | boolean | false | White text for dark backgrounds. |
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm" | "md" | "lg" | "md" | Controls the size. |
variant | "soft" | "solid" | "soft" | Tinted tile, or filled brand gradient with a white icon. |
tone | "primary" | "accent" | "primary" | Colour family. |
Every component also accepts className and forwards its ref. Root CSS class: .kivu-section-header