Skip to content

Item

A flexible list row with media, content, and actions.

Two-factor authentication

Add an extra layer of security to your account.

Update available

Version 2.4 is ready to install.

Install

Bash
npx @madeui/cli add item

Usage

TSX
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemGroup,
  ItemMedia,
  ItemTitle,
} from '@/components/ui/item';

Composition

TSX
<ItemGroup>
  <Item>
    <ItemMedia />
    <ItemContent>
      <ItemTitle />
      <ItemDescription />
    </ItemContent>
    <ItemActions />
  </Item>
  <ItemSeparator />
</ItemGroup>

Variants

Default

A borderless row.

Outline

A bordered row.

Muted

A tinted background row.

Sizes

Extra small
Small
Medium

Avatar

Use ItemMedia to hold our Avatar component.

MD
madeui

Left a comment on your pull request.

Group

Group related items with ItemGroup, dividing them with ItemSeparator.

Deploy succeeded

Production · 2 minutes ago

New comment

On issue #482 · 1 hour ago

Build failed

staging branch · yesterday

Use the render prop to render the item as an anchor — hover and focus states apply to the element itself.

API reference

Item

PropTypeDefaultDescription
variant'default' | 'outline' | 'muted''default'
size'xs' | 'sm' | 'md''md'
renderReactElement—Render as another element, e.g. render={<a href="…" />}.
styleStyleXStyles—StyleX styles merged last — always win over the component’s own styles.

ItemMedia accepts variant: 'default', 'icon', or 'image' (40px rounded thumbnail). ItemHeader / ItemFooter span the full row width.

Was this page helpful?