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
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
Manage your personal information and settings.
Linked row
With Actions
Configure your project preferences.
Installation
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}" } } } }Install the component.
Terminalnpx 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
| Prop | Type | Default |
|---|---|---|
asChild | boolean | false |
size | null | "default" | "sm" | "default" |
variant | null | "default" | "outline" | "muted" | "default" |
ItemMedia
| Prop | Type | Default |
|---|---|---|
variant | null | "image" | "default" | "icon" | "default" |
ItemSeparator
| Prop | Type | Default |
|---|---|---|
orientation | "horizontal" | "vertical" | — |