Components/Surfaces/Item
COMPONENT28.28

Item

List rows with media, content and actions. Groups are gap-based lists; link rows get accent hover.


INSTALL

1pnpm dlx @sayagodev/mo add item

Or import the files from the package (no copy):

1import "@sayagodev/mo/css/item.css";

EXAMPLES

Demo
Basic item

A simple item with title and description.

Your profile has been verified.
Variants
Default

Bordered row with a subtle shadow.

Muted

Muted background for secondary content.

Sizes
Default size

The standard size for most use cases.

Small size

A compact size for dense layouts.

Link items
With icon
Security alert

New login detected from unknown device.

With avatar
ER
Evil Rabbit

Last seen 5 months ago

S
M
E
No team members

Invite your team to collaborate on this project.

With image media
Group
Outline group
  • Item 1

    First item with icon.

  • Item 2

    Second item with icon.

  • Item 3

    Third item with icon.

Muted group
  • Item 1

    First item in muted group.

  • Item 2

    Second item in muted group.

  • Item 3

    Third item in muted group.

Header cards
Abstract gradient artwork
v0-1.5-sm

Everyday tasks and UI generation.

Light trails at night
v0-1.5-lg

Advanced thinking or reasoning.

Starry sky over mountains
v0-2.0-mini

Open source model for everyone.

With dropdown menu
ER
Evil Rabbit

[email protected]


USAGE

1<ul data-item-group role="list">2  <li>3    <div data-item>4      <div data-item-media data-variant="icon"><svg/></div>5      <div data-item-content>6        <div data-item-title>Title</div>7        <p data-item-description>Description.</p>8      </div>9      <div data-item-actions><button class="outline small">Open</button></div>10    </div>11  </li>12</ul>

API

NAMEKINDDESCRIPTION
[data-item-group]attributeGap-based list on ul/ol/div
[data-item]attributeBordered row; link items get hover
[data-variant]attributeoutline · muted surface
[data-size="sm"]attributeCompact padding/gap
[data-item-media]attributeLeading slot; icon/image variants
[data-item-content] / [data-item-title] / [data-item-description]attributeText anatomy
[data-item-actions]attributeRight-side action row

FILES

src/css/item.css
Install:mo add item

THEMING · PLAYGROUND

This is the exact component from the examples above, wearing a completely different theme. Edit the tokens and --mo-* hooks in the editor — autocomplete knows them all — and the preview obeys in real time. Your CSS always wins.

Tokens & hooks — edit live
Global tokens
--accent--border--muted--muted-foreground--primary--radius
Component hooks
--mo-item-gap--mo-item-group-gap--mo-item-media-icon-size--mo-item-media-image-size--mo-item-padding--mo-item-padding-sm--mo-item-radius

Preview

Sealer head 02

Calibrated 3 days ago — drift within tolerance.

Your CSS

Try it: type --mo- for the component hooks, or edit any value — the preview obeys in real time.