Y2K UI

Item

A selectable list item with selected, highlighted, and disabled states.

item-demo.app
Selected item
Regular item
Another item
Disabled item

Installation

terminal.sh
npx y2kui@latest add item

Usage

import { Item, ItemLabel, ItemIndicator } from "@/components/ui/item"

<Item selected>
  <ItemIndicator>✓</ItemIndicator>
  <ItemLabel>Selected option</ItemLabel>
</Item>

Props

PropTypeDefaultDescription
selectedbooleanfalseMarks the item as selected.
disabledbooleanfalseDisables interaction.
classNamestringAdditional Tailwind classes.

On this page