Content
Item
A row with a title, an optional subtitle, and slots on the left and right for media and actions.
Group: Content. Exports: ListItem, Item. shadcn/ui equivalent: Item (partial parity).
Usage
import { ListItem } from "./halaska-kit";
ListItem props
titlestring: Heading text.subtitlestring:leftReactNode:rightReactNode:dividerboolean(default true):onClick() => void: Called on click.
Accessibility
- Renders a div with no list or listitem role.
- A row with onClick gets the button role, takes focus and responds to Enter and Space.
- Controls placed in the left and right slots keep their own keyboard behaviour.
Known gaps
- No outline or muted variants and no size option.
- No ItemGroup, header or footer parts.
- No link rendering: the row cannot be an anchor.
Halaska UI · Components · Patterns · Screens · Install