Skip to contents
Interfaces DS
Landing Page

Item

Build a React list row for settings, profiles or files. Combine a title and description with an optional icon, a link or separate actions.

On this page

Usage

User Profile

Manage your personal information and settings.

Usage guidelines

For a row with one destination, pass a single anchor to Item with asChild. A settings row that opens a detail page then works with the keyboard and supports opening in a new tab.

For a row with multiple actions, put the primary link in ItemTitle and the buttons in ItemActions. Give each icon button a name that identifies its action and target.

Examples

With Icon

User Profile

Manage your personal information and settings.

Linked row

With Actions

Project Settings

Configure your project preferences.

Installation

  1. Set up your license key before connecting the private registry.

    Connect this project to https://docs.interfacesds.com using the full URL shown below, including {name}. In components.json, add the registries field at the top level. If the field already exists, add only the @interfaces-ds entry inside it. Keep your existing aliases and other registries.

    For a global stylesheet in app/ or src/app/.

    JSON
    {
      "registries": {
        "@interfaces-ds": {
          "url": "https://docs.interfacesds.com/r/{name}.json",
          "headers": {
            "Authorization": "Bearer ${INTERFACES_DS_LICENSE_KEY}"
          }
        }
      }
    }
  2. Install the component.

    Terminal
    npx shadcn@latest add @interfaces-ds/item

API reference

Import these exports from @/components/ui/item. The tables cover component-specific props and common controls.

Item
PropTypeDefault
asChildbooleanfalse
sizenull | "default" | "sm""default"
variantnull | "default" | "outline" | "muted""default"
ItemMedia
PropTypeDefault
variantnull | "image" | "default" | "icon""default"
ItemContent
ItemActions
ItemGroup
ItemSeparator
PropTypeDefault
orientation"horizontal" | "vertical"—
ItemTitle
ItemDescription
ItemHeader
ItemFooter