v0.1.0
Get startedComponentsTheming
Install

Getting started

  • Introduction
  • Installation
  • Tailwind CSS
  • Next.js

Theming

  • Design tokens
  • Dark mode
  • Customization

Layout

  • SectionHeader
  • Container & Divider
  • AppShell
  • PageHeader

Actions

  • Button
  • IconButton

Forms

  • Input
  • Textarea
  • Select
  • Checkbox
  • Switch
  • SegmentedControl
  • RadioGroup
  • Combobox
  • DatePicker & DateRangePicker

Disclosure

  • Tabs
  • Accordion

Overlay

  • Modal
  • Drawer
  • Tooltip
  • Popover
  • DropdownMenu

Data display

  • Badge
  • Avatar
  • Card
  • StatCard
  • Table & DataTable
  • Pagination
  • Sparkline & chart colours

Feedback

  • Banner
  • Spinner
  • Skeleton
  • EmptyState
  • Toast
  • Progress

A lightweight, Tailwind-friendly React component library.

Getting started

  • Introduction
  • Installation
  • Tailwind CSS
  • Next.js

Theming

  • Design tokens
  • Dark mode
  • Customization

Components

  • SectionHeader
  • Container & Divider
  • AppShell
  • PageHeader
  • Button
  • IconButton
  • Input

Released under the MIT License.@kivu-ui/react on npm

Documentation

Getting started

  • Introduction
  • Installation
  • Tailwind CSS
  • Next.js

Theming

  • Design tokens
  • Dark mode
  • Customization

Layout

  • SectionHeader
  • Container & Divider
  • AppShell
  • PageHeader

Actions

  • Button
  • IconButton

Forms

  • Input
  • Textarea
  • Select
  • Checkbox
  • Switch
  • SegmentedControl
  • RadioGroup
  • Combobox
  • DatePicker & DateRangePicker

Disclosure

  • Tabs
  • Accordion

Overlay

  • Modal
  • Drawer
  • Tooltip
  • Popover
  • DropdownMenu

Data display

  • Badge
  • Avatar
  • Card
  • StatCard
  • Table & DataTable
  • Pagination
  • Sparkline & chart colours

Feedback

  • Banner
  • Spinner
  • Skeleton
  • EmptyState
  • Toast
  • Progress

SectionHeader

Section intro: icon tile, display heading, description and actions.

import { SectionHeader, IconTile, Highlight } from "@kivu-ui/react"

On this page

UsageAlignment & invertedIconTileProps

Getting started

  • Introduction
  • Installation
  • Tailwind CSS
  • Next.js

Theming

  • Design tokens
  • Dark mode
  • Customization

Layout

  • SectionHeader
  • Container & Divider
  • AppShell
  • PageHeader

Actions

  • Button
  • IconButton

Forms

  • Input
  • Textarea
  • Select
  • Checkbox
  • Switch
  • SegmentedControl
  • RadioGroup
  • Combobox
  • DatePicker & DateRangePicker

Disclosure

  • Tabs
  • Accordion

Overlay

  • Modal
  • Drawer
  • Tooltip
  • Popover
  • DropdownMenu

Data display

  • Badge
  • Avatar
  • Card
  • StatCard
  • Table & DataTable
  • Pagination
  • Sparkline & chart colours

Feedback

  • Banner
  • Spinner
  • Skeleton
  • EmptyState
  • Toast
  • Progress

Usage

import { SectionHeader, IconTile, Highlight } from "@kivu-ui/react";

Timelines

Plan every project on one board

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>
        </>
      }
    />
  );
}

Examples

Alignment & inverted

Invoices

Bill clients straight from tracked time

Reports

See where the hours really go

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>
  );
}

IconTile

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>
  );
}

Props

SectionHeader

PropTypeDefaultDescription
titleReactNode-Required. The heading.
eyebrowReactNode-Small uppercase label above the title.
descriptionReactNode-Paragraph under the title.
iconReactNode-Rendered inside an IconTile.
actionsReactNode-Buttons under the text.
align"center" | "start""center"Text alignment.
as"h1" | "h2" | "h3""h2"Heading level.
invertedbooleanfalseWhite text for dark backgrounds.

IconTile

PropTypeDefaultDescription
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

PreviousCustomizationNextContainer & Divider