--- layout: layouts/page.njk title: Item description: A versatile component that you can use to display any content. toc: - label: Usage id: usage - label: Examples id: examples children: - label: Variants id: example-variants - label: Size id: example-size - label: Icon id: example-icon - label: Avatar id: example-avatar - label: Image id: example-image - label: Group id: example-group - label: Header id: example-header - label: Link id: example-link --- {% from "macros/code_block.njk" import code_block %} {% from "macros/code_preview.njk" import code_preview %}
{% lucide "circle-alert" %}

There is no dedicated Item component in Basecoat.

{% set code_basic %}

Basic Item

A simple item with title and description.

{% lucide "badge-check" %}

Your profile has been verified.

{% lucide "chevron-right" %}
{% endset %} {{ code_preview("item-basic", code_basic | prettyHtml, class="w-full max-w-md") }}

Usage

Items are pure HTML composition using Tailwind utility classes. Use semantic elements like <article> or <a>, apply flex layout, and compose with standard HTML elements like <h3>, <p>, <img>, or <button>.

Browse the examples below and copy the pattern that fits your needs.

Examples

Variants

{% set code_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.

{% endset %} {{ code_preview("item-variants", code_variants) }}

Size

Use different padding and gap sizes for compact or spacious layouts.

{{ code_preview("item-size", code_basic) }}

Icon

{% set code_icon %}
{% lucide "shield-alert" %}

Security Alert

New login detected from unknown device.

{% endset %} {{ code_preview("item-icon", code_icon, class="max-w-lg") }}

Avatar

{% set code_avatar %}
hunvreus

hunvreus

Last seen 5 months ago

@hunvreus @shadcn @adamwathan

No Team Members

Invite your team to collaborate on this project.

{% endset %} {{ code_preview("item-avatar", code_avatar, class="w-full max-w-lg") }}

Image

{% set code_image %}
Midnight City Lights

Midnight City Lights - Electric Nights

Neon Dreams

3:45

Midnight City Lights

Coffee Shop Conversations - Urban Stories

The Morning Brew

4:05

Midnight City Lights

Digital Rain - Binary Beats

Cyber Symphony

3:30

{% endset %} {{ code_preview("item-image", code_image) }}

Group

{% set code_group %}
Ronan Berder

hunvreus

hunvreus@gmail.com

shadcn

shadcn

shadcn@vercel.com

Adam Wathan

adamwathan

adam.wathan@gmail.com

{% endset %} {{ code_preview("item-group", code_group, class="w-full max-w-md") }}

Header

{% set code_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.

{% endset %} {{ code_preview("item-header", code_header) }}

Items can be rendered as links by using an <a> element. Hover and focus states are applied automatically.

{% set code_link %}

Visit our documentation

Learn how to get started with our components.

{% lucide "chevron-right" %}

External resource

Opens in a new tab with security attributes.

{% lucide "external-link" %}
{% endset %} {{ code_preview("item-link", code_link, class="w-full max-w-md") }}