Display

Item

Composes list rows with media, content, metadata, and actions.

Imports

Use the same component slug for React, Vue, and style token lookup. Do not import components from package roots.

import { Item, ItemHeader, ItemContent, ItemDescription, ItemActions } from "@line/abc-def-react/item";
<script setup lang="ts">
import { Item, ItemHeader, ItemContent, ItemDescription, ItemActions } from "@line/abc-def-vue/item";
</script>

Shadcn references

Compare the corresponding shadcn React and Vue documentation for the same component slug.

Basic usage

Component tokens

Scoped to each shared class contract.

import {
  Item,
  ItemContent,
  ItemDescription,
  ItemHeader,
  ItemTitle,
} from "@line/abc-def-react/item";

export function Example() {
  return (
    <Item>
      <ItemHeader><ItemTitle>Component tokens</ItemTitle></ItemHeader>
      <ItemContent>
        <ItemDescription>Scoped to each shared class contract.</ItemDescription>
      </ItemContent>
    </Item>
  );
}
<script setup lang="ts">
import {
  Item,
  ItemContent,
  ItemDescription,
  ItemHeader,
  ItemTitle,
} from "@line/abc-def-vue/item";
</script>

<template>
  <Item>
    <ItemHeader>
      <ItemTitle>Component tokens</ItemTitle>
    </ItemHeader>
    <ItemContent>
      <ItemDescription>
        Scoped to each shared class contract.
      </ItemDescription>
    </ItemContent>
  </Item>
</template>

Component tokens

Component TokenSemantic TokenDefault Primitive Token
--item-border-outline--border--color-zinc-200
--item-bg-muted--muted--color-zinc-100
--item-link-bg-hover--muted--color-zinc-100
--item-description-fg--muted-foreground--color-zinc-500
--item-description-link-hover--primary--color-zinc-900
--item-ring--ring--color-zinc-400

Composition exports

ItemItemHeaderItemContentItemDescriptionItemActions

Usage notes

  • Use for repeated rows.
  • Keep row actions visually secondary unless they are the primary workflow.
  • Related component tokens use the `item` token group in `@line/abc-def-styles/css`.