item

Item

Groups the media, text and actions of one entry, such as a list row or a link to a page.

Parts

PartFileDoes
ItemItem.vueGroups the media, text and actions of one entry, such as a list row.
ItemActionsItemActions.vueHolds the actions of its item, such as buttons or links.
ItemContentItemContent.vueGroups the title and description of its item.
ItemDescriptionItemDescription.vueGives more detail about its item below the title.
ItemFooterItemFooter.vueHolds extra content below the main row of its item.
ItemGroupItemGroup.vueGroups several items into one list.
ItemHeaderItemHeader.vueHolds extra content above the main row of its item.
ItemMediaItemMedia.vueShows an icon, image or avatar at the start of its item.
ItemSeparatorItemSeparator.vueSeparates the items of a group.
ItemTitleItemTitle.vueNames its item.

Anatomy

<ItemGroup>
  <ItemSeparator />
  <Item>
    <ItemHeader />
    <ItemMedia />
    <ItemContent>
      <ItemTitle />
      <ItemDescription />
    </ItemContent>
    <ItemActions />
    <ItemFooter />
  </Item>
</ItemGroup>

Styling

All of Item’s styles live in item.json. New to styling in Frontic UI? How styling works →

Install

Installs with it
separator
npm packages
class-variance-authority
reka-ui

Built from

API reference

Groups the media, text and actions of one entry, such as a list row. Renders a <div>.

Props 5

PropTypeDefault
asChildbooleanfalse
asAsTag | Component'div'
classClassValue—
variant'default' | 'outline' | 'muted''default'
size'md' | 'xs' | 'sm''md'

Data attributes 2

Data attributeValues
data-size'md' | 'xs' | 'sm'
data-variant'default' | 'outline' | 'muted'

Recipe item 7 groups

ItemActions.vue

ItemContent.vue

ItemDescription.vue

ItemFooter.vue

ItemGroup.vue

ItemHeader.vue

ItemMedia.vue

ItemSeparator.vue

ItemTitle.vue
Item
State