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 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

RadioGroup

Pick one option from a short list, with labels and descriptions. Uses native radio inputs.

import { RadioGroup, Radio } from "kivu-ui"

On this page

UsageProps

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 { RadioGroup, Radio } from "kivu-ui";
Billing cycle

$24 per seat

$19 per seat, billed once

Density
import { Radio, RadioGroup } from "kivu-ui";

export default function Demo() {
  return (
    <div className="grid gap-8 sm:grid-cols-2">
      <RadioGroup label="Billing cycle" defaultValue="yearly">
        <Radio value="monthly" label="Monthly" description="$24 per seat" />
        <Radio value="yearly" label="Yearly" description="$19 per seat, billed once" />
      </RadioGroup>
      <RadioGroup label="Density" orientation="horizontal" defaultValue="default">
        <Radio value="compact" label="Compact" />
        <Radio value="default" label="Default" />
      </RadioGroup>
    </div>
  );
}

Props

RadioGroup

Extends <fieldset> attributes.

PropTypeDefaultDescription
labelReactNode-Group label (a <legend>).
descriptionReactNode-Helper text.
errorReactNode | boolean-Error message.
value / defaultValuestring-Selected value.
onValueChange(value: string) => void-Called when the selection changes.
orientation"vertical" | "horizontal""vertical"Layout.
namestring-Shared name for native form posts (generated if omitted).

Radio

Extends <input> attributes.

PropTypeDefaultDescription
valuestring-Required.
labelReactNode-Clickable label.
descriptionReactNode-Text under the label.

Every component also accepts className and forwards its ref. Root CSS class: .kivu-radio

PreviousSegmentedControlNextCombobox