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

Accordion

Stacked sections that expand and collapse. Good for FAQs.

import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "@kivu-ui/react"

On this page

UsageMultiple & plainProps

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 { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "@kivu-ui/react";

Every member with edit access uses a seat. Viewers and clients are free.

Yes. Download any project as CSV or JSON from its settings page.

Your workspace stays read-only for 30 days, then it is deleted.
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@kivu-ui/react";

export default function Demo() {
  return (
    <Accordion defaultValue={["seats"]} className="w-full max-w-xl">
      <AccordionItem value="seats">
        <AccordionTrigger>How are seats counted?</AccordionTrigger>
        <AccordionContent>Every member with edit access uses a seat. Viewers and clients are free.</AccordionContent>
      </AccordionItem>
      <AccordionItem value="export">
        <AccordionTrigger>Can I export my projects?</AccordionTrigger>
        <AccordionContent>Yes. Download any project as CSV or JSON from its settings page.</AccordionContent>
      </AccordionItem>
      <AccordionItem value="cancel">
        <AccordionTrigger>What happens if I cancel?</AccordionTrigger>
        <AccordionContent>Your workspace stays read-only for 30 days, then it is deleted.</AccordionContent>
      </AccordionItem>
    </Accordion>
  );
}

Examples

Multiple & plain

Open several items at once and remove the card styling.

Pass the multiple prop.

No card background or shadow.
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@kivu-ui/react";

export default function Demo() {
  return (
    <Accordion multiple variant="plain" className="w-full max-w-xl">
      <AccordionItem value="a">
        <AccordionTrigger>Several items can be open</AccordionTrigger>
        <AccordionContent>Pass the multiple prop.</AccordionContent>
      </AccordionItem>
      <AccordionItem value="b">
        <AccordionTrigger>Plain variant</AccordionTrigger>
        <AccordionContent>No card background or shadow.</AccordionContent>
      </AccordionItem>
    </Accordion>
  );
}

Props

Accordion

PropTypeDefaultDescription
multiplebooleanfalseAllow several open items.
defaultValuestring[][]Initially open items (uncontrolled).
valuestring[]-Open items (controlled).
onValueChange(value: string[]) => void-Called when items open or close.
variant"card" | "plain""card"Card adds a white surface and shadow.

AccordionItem

PropTypeDefaultDescription
valuestring-Required. Unique id of the item.
disabledboolean-Prevent toggling.

AccordionTrigger

Extends <button> attributes. Rendered inside an <h3>.

PropTypeDefaultDescription
iconReactNode | null-Replace the chevron, or null to hide it.

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

PreviousTabsNextModal