Skip to main content

Starwind UI v3.7 is here with stable Vue and Svelte, the new Chart component, and full RTL support. Read the release notes

Basic Item

A simple item with title and description.

Your profile has been verified.

Installation

Usage

---
import { Button } from "@/components/starwind/button";
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemTitle,
} from "@/components/starwind/item";
---
<Item variant="outline">
<ItemContent>
<ItemTitle>Security review</ItemTitle>
<ItemDescription>Review the latest sign-in activity.</ItemDescription>
</ItemContent>
<ItemActions>
<Button size="sm" variant="outline">Review</Button>
</ItemActions>
</Item>

Composition

Use this structure to combine Item content, media, and actions:

ItemGroup
├── Item
│ ├── ItemHeader
│ ├── ItemMedia
│ ├── ItemContent
│ │ ├── ItemTitle
│ │ └── ItemDescription
│ ├── ItemActions
│ └── ItemFooter
├── ItemSeparator
└── Item

Item or Field

Use Item to display content with optional media and actions. Use Field when the row contains a form control such as an input, checkbox, radio, or select.

Icon

Security Alert

New login detected from unknown device.

Avatar

BB
Branden

Last seen 5 months ago

BB
No Team Members

Invite your team to collaborate on this project.

Image

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.

Sizes

Medium Size

The default padding and spacing for most use cases.

Small Size

Compact padding for dense layouts.

Group

CN
shadcn

The Chad CN

ML
Branden

Creator of Starwind UI

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.

API Reference

Styled Component API

These props are added or materially changed by the installed styled component. Standard HTML attributes remain available through the inherited interfaces noted below. Expand a prop to see named type definitions and framework-specific imports. Follow the Primitive and Runtime links for lower-level behavior props.

Item

Inherits a attributes. Omits `type`.

Inherits div attributes.

Contains the following additional props:

Prop Type Default Toggle details
as keyof HTMLElementTagNameMap "div"
Description
Selects the rendered element or component.
Classification
Wrapper prop
size "sm" | "md" "md"
Description
Selects the component's visual size.
Classification
Styled variant
variant "default" | "outline" | "muted" "default"
Description
Selects the component's visual variant.
Classification
Styled variant

Item Media

Inherits div attributes.

Contains the following additional props:

Prop Type Default Toggle details
variant "default" | "icon" | "image" "default"
Description
Selects the component's visual variant.
Classification
Styled variant

Changelog

View version history v1.2.3 7 releases

v1.2.3

  • In Vue, this component now needs Vue 3.5.21 or newer.
  • Maintenance release for the component files that the CLI copies into your project. Only internal code changed, such as unused code and import order. Behavior stays the same.

v1.2.2

  • In Astro, an attribute that you set on Item and its parts now wins over the component’s own default for the same attribute, such as role or aria-label.

v1.2.1

  • The default export in index.ts now has a name, ItemParts, so framework tools show a clear name.

v1.2.0

  • Renamed the standard Item size from default to md. Omitting size keeps the same medium spacing.

v1.1.0

  • The component is now available for React as well as Astro. Its props and styles stay the same.

v1.0.3

  • The Tailwind variants now live in their own variants.ts file in the component folder.

v1.0.0

  • Initial release with starwind v1.10.0