››item
Item
Groups the media, text and actions of one entry, such as a list row or a link to a page.
Parts
| Part | File | Does |
|---|---|---|
| Item | Item.vue | Groups the media, text and actions of one entry, such as a list row. |
| ItemActions | ItemActions.vue | Holds the actions of its item, such as buttons or links. |
| ItemContent | ItemContent.vue | Groups the title and description of its item. |
| ItemDescription | ItemDescription.vue | Gives more detail about its item below the title. |
| ItemFooter | ItemFooter.vue | Holds extra content below the main row of its item. |
| ItemGroup | ItemGroup.vue | Groups several items into one list. |
| ItemHeader | ItemHeader.vue | Holds extra content above the main row of its item. |
| ItemMedia | ItemMedia.vue | Shows an icon, image or avatar at the start of its item. |
| ItemSeparator | ItemSeparator.vue | Separates the items of a group. |
| ItemTitle | ItemTitle.vue | Names 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
| Prop | Type | Default | |
|---|---|---|---|
| asChild | boolean | false | |
| |||
| as | AsTag | Component | 'div' | |
| |||
| class | ClassValue | — | |
| |||
| variant | 'default' | 'outline' | 'muted' | 'default' | |
| |||
| size | 'md' | 'xs' | 'sm' | 'md' | |
| |||
Data attributes 2
| Data attribute | Values | |
|---|---|---|
| data-size | 'md' | 'xs' | 'sm' | |
| ||
| data-variant | 'default' | 'outline' | 'muted' | |
| ||
Recipe item 7 groups
border border.default1px solid #e4e4e7
rounded rounded.none0px
typography typography.small400 0.875rem/1.43 'Inter Variable', Inter, sans-serif
display flex
width full
flexWrap wrap
alignItems center
borderColor :focuscolors.ring#71717a
outline :focusring.wide3px solid #71717a
outlineColor :focuscolors.ring#71717a
borderColor transparent
borderColor colors.border#e4e4e7
backgroundColor colors.muted/50color-mix(in oklab, #f4f4f5 50%, transparent)
borderColor transparent
Recipe item-link 1 group
backgroundColor :hovercolors.muted#f4f4f5
Item