Item

A versatile component used to display any content.

Basic Item

A simple item with title and description.

Your profile has been verified.

Variants

Default Variant

Standard styling with subtle background and borders.

Outline Variant

Outlined style with clear borders and transparent background.

Muted Variant

Subdued appearance with muted colors for secondary content.

Icon

Security Alert

New login detected from unknown device.

Avatar

Evil Rabbit

Last seen 5 months ago

@shadcn
@maxleiter
@evilrabbit
No Team Members

Invite your team to collaborate on this project.

Image

Group

shadcn

shadcn@vercel.com

maxleiter

maxleiter@vercel.com

evilrabbit

evilrabbit@vercel.com

Header

v0-1.5-sm
v0-1.5-sm

Everyday tasks and UI generation.

v0-1.5-lg
v0-1.5-lg

Advanced thinking or reasoning.

v0-2.0-mini
v0-2.0-mini

Open Source model for everyone.

Link

Dropdown

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::*;

#[component]
pub fn ItemAnatomy() -> impl IntoView {
    view! {
        <ItemGroup>
            <Item>
                <ItemMedia />
                <ItemHeader />
                <ItemContent>
                    <ItemTitle />
                    <ItemDescription />
                </ItemContent>
                <ItemActions>
                    <Button />
                </ItemActions>
                <ItemFooter />
            </Item>
            <ItemSeparator />
        </ItemGroup>
    }
}

API Reference

Item

Contains the contents of an Item.

Custom Attributes
NameTypeDefaultDescription
sizeString"default"

Set the display size of the Item.

variantString"default"

Set the display variant of the Item.

Implements global attributes.

ItemActions

Contains the actionable section of an Item.

Implements global attributes.

ItemContent

Contains the content section of an Item.

Implements global attributes.

ItemDescription

Contains description text for an Item.

Implements global attributes.

ItemFooter

Contains footer content for an Item.

Implements global attributes.

ItemGroup

Groups content together for display within an Item.

Implements global attributes.

ItemHeader

Contains header content for an Item.

Implements global attributes.

ItemMedia

Contains media content such as an icon or image for an Item.

Custom Attributes
NameTypeDefaultDescription
variantString"default"

Set the display variant of the ItemMedia.

Implements global attributes.

ItemSeparator

Separates Item content.

Custom Attributes
NameTypeDefaultDescription
verticalboolfalse

Toggle whether or not the separator should display vertically.

Implements global attributes.

ItemTitle

Contains title text for an Item.

Implements global attributes.