import Image from "next/image"
import {
Example,
ExampleWrapper,
} from "@/registry/bases/base/components/example"
import { Button } from "@/registry/bases/base/ui/button"
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemFooter,
ItemGroup,
ItemHeader,
ItemMedia,
ItemSeparator,
ItemTitle,
} from "@/registry/bases/base/ui/item"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
export default function ItemExample() {
return (
)
}
function DefaultVariantItems() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function OutlineVariantItems() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function MutedVariantItems() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function DefaultVariantItemsSmall() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function OutlineVariantItemsSmall() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function MutedVariantItemsSmall() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function DefaultVariantItemsExtraSmall() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function OutlineVariantItemsExtraSmall() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function MutedVariantItemsExtraSmall() {
return (
Title OnlyTitle + ButtonTitle + Description
This is a description that provides additional context.
Title + Description + Button
This item includes a title, description, and action button.
Media + TitleMedia + Title + ButtonMedia + Title + Description
This item includes media, title, and description.
Media + Title + Description + Button
Complete item with all components: media, title, description, and
button.
Multiple Actions
Item with multiple action buttons in the actions area.
)
}
function DefaultLinkItems() {
return (
}>
Title Only (Link)}>
Title + Description (Link)
Clickable item with title and description.
}>
Media + Title (Link)}>
Media + Title + Description (Link)
Complete link item with media, title, and description.
}>
With Actions (Link)
Link item that also has action buttons.
)
}
function OutlineLinkItems() {
return (
}>
Title Only (Link)}>
Title + Description (Link)
Clickable item with title and description.
}>
Media + Title (Link)}>
Media + Title + Description (Link)
Complete link item with media, title, and description.
}>
With Actions (Link)
Link item that also has action buttons.
)
}
function MutedLinkItems() {
return (
}>
Title Only (Link)}>
Title + Description (Link)
Clickable item with title and description.
}>
Media + Title (Link)}>
Media + Title + Description (Link)
Complete link item with media, title, and description.
}>
With Actions (Link)
Link item that also has action buttons.
)
}
function DefaultItemGroup() {
return (
Item 1First item in the group.Item 2Second item in the group.Item 3Third item in the group.
)
}
function OutlineItemGroup() {
return (
Item 1First item with icon.Item 2Second item with icon.Item 3Third item with icon.
)
}
function MutedItemGroup() {
return (
Item 1First item in muted group.Item 2Second item in muted group.Item 3Third item in muted group.
)
}
function ItemSeparatorExample() {
return (
InboxView all incoming messages.SentView all sent messages.DraftsView all draft messages.ArchiveView archived messages.
)
}
function ItemHeaderExamples() {
return (
Design SystemComponent Library
A comprehensive collection of reusable UI components for building
consistent interfaces.
MarketingCampaign Analytics
Track performance metrics and engagement rates across all marketing
channels.
EngineeringAPI Documentation
Complete reference guide for all available endpoints and
authentication methods.
)
}
function ItemFooterExamples() {
return (
Quarterly Report Q4 2024
Financial overview including revenue, expenses, and growth metrics
for the fourth quarter.
Last updated 2 hours ago
User Research Findings
Insights from interviews and surveys conducted with 50+ users across
different demographics.
Created by Sarah Chen
Product Roadmap
Planned features and improvements scheduled for the next three
months.
12 comments
)
}
function ItemHeaderAndFooterExamples() {
return (
Team ProjectWebsite Redesign
Complete overhaul of the company website with modern design
principles and improved user experience.
Updated 5 minutes ago
Client WorkMobile App Development
Building a cross-platform mobile application for iOS and Android
with React Native.
Status: In Progress
DocumentationAPI Integration Guide
Step-by-step instructions for integrating third-party APIs with
authentication and error handling.
Category: Technical • 3 attachments
)
}
function DefaultVariantItemsWithImage() {
return (
Project Dashboard
Overview of project settings and configuration.
DocumentA document with metadata displayed.File Attachment
Complete file with image, title, description, and action button.
)
}
function OutlineVariantItemsWithImage() {
return (
Project Dashboard
Overview of project settings and configuration.
DocumentA document with metadata displayed.File Attachment
Complete file with image, title, description, and action button.
)
}
function OutlineVariantItemsWithImageSmall() {
return (
Project Dashboard
Overview of project settings and configuration.
DocumentA document with metadata displayed.File Attachment
Complete file with image, title, description, and action button.
)
}
function OutlineVariantItemsWithImageExtraSmall() {
return (
Project DashboardDocumentFile Attachment
)
}
function MutedVariantItemsWithImage() {
return (
Project Dashboard
Overview of project settings and configuration.
DocumentA document with metadata displayed.File Attachment
Complete file with image, title, description, and action button.
)
}