Skip to content

Item

A flexible item component that can be used for lists, cards, and more.

Examples

Default

🚀
Launch Project

Deploy your new project to production.

vue
<Item>
  <ItemMedia>
    <div class="h-10 w-10 flex items-center justify-center rounded-full bg-muted">
      <span class="text-xl">🚀</span>
    </div>
  </ItemMedia>
  <ItemContent>
    <ItemHeader>
      <ItemTitle>Launch Project</ItemTitle>
      <ItemDescription>Deploy your new project to production.</ItemDescription>
    </ItemHeader>
  </ItemContent>
  <ItemActions>
    <Button variant="outline" size="sm">View</Button>
  </ItemActions>
</Item>

Props

Item

PropTypeDefaultDescription
asstring'div'The element or component to render as
variantstring'default'The variant of the item
sizestring'default'The size of the item

Slots

Item

SlotDescription
defaultThe item content

ItemMedia

SlotDescription
defaultThe media content

ItemContent

SlotDescription
defaultThe main content

ItemHeader

SlotDescription
defaultThe header content

ItemTitle

SlotDescription
defaultThe title content

ItemDescription

SlotDescription
defaultThe description content

ItemActions

SlotDescription
defaultThe actions content