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

Popover

A floating panel anchored to a button, for filters and quick edits.

import { Popover, PopoverTrigger, PopoverContent, PopoverClose } 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 { Popover, PopoverTrigger, PopoverContent, PopoverClose } from "kivu-ui";
import { Button, Checkbox, Popover, PopoverClose, PopoverContent, PopoverTrigger } from "kivu-ui";

export default function Demo() {
  return (
    <Popover>
      <PopoverTrigger asChild>
        <Button variant="outline">Filters</Button>
      </PopoverTrigger>
      <PopoverContent align="start" className="w-64">
        <p className="mb-3 text-sm font-semibold">Status</p>
        <div className="grid gap-2">
          <Checkbox label="Active" defaultChecked />
          <Checkbox label="Trialing" defaultChecked />
          <Checkbox label="Cancelled" />
        </div>
        <div className="mt-4 flex justify-end">
          <PopoverClose asChild>
            <Button size="sm">Apply</Button>
          </PopoverClose>
        </div>
      </PopoverContent>
    </Popover>
  );
}

Props

Popover

PropTypeDefaultDescription
openboolean-Open state (controlled).
defaultOpenbooleanfalseInitial open state (uncontrolled).
onOpenChange(open: boolean) => void-Called when it opens or closes.

PopoverTrigger

Extends <button> attributes.

PropTypeDefaultDescription
asChildbooleanfalseRender the single child (e.g. a router Link) with this trigger's styles and behaviour.

PopoverContent

Extends <div> attributes.

PropTypeDefaultDescription
side"top" | "bottom" | "left" | "right""bottom"Preferred side; flips when there isn't room.
align"start" | "center" | "end""start"Alignment along the trigger.
offsetnumber6Gap from the trigger, in px.
autoFocusbooleantrueMove focus into the panel when it opens.

PopoverClose

Extends <button> attributes.

PropTypeDefaultDescription
asChildbooleanfalseRender the single child (e.g. a router Link) with this button's styles and behaviour.

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

PreviousTooltipNextDropdownMenu