diff --git a/apps/v4/public/r/styles/radix-luma/item-example.json b/apps/v4/public/r/styles/radix-luma/item-example.json index 5fe97280550..a6ffc5a8e8c 100644 --- a/apps/v4/public/r/styles/radix-luma/item-example.json +++ b/apps/v4/public/r/styles/radix-luma/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-luma/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-luma/components/example\"\nimport { Button } from \"@/registry/radix-luma/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-luma/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-luma/components/example\"\nimport { Button } from \"@/registry/radix-luma/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-luma/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/radix-lyra/item-example.json b/apps/v4/public/r/styles/radix-lyra/item-example.json index 57b2e904799..44f85cd8730 100644 --- a/apps/v4/public/r/styles/radix-lyra/item-example.json +++ b/apps/v4/public/r/styles/radix-lyra/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-lyra/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-lyra/components/example\"\nimport { Button } from \"@/registry/radix-lyra/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-lyra/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-lyra/components/example\"\nimport { Button } from \"@/registry/radix-lyra/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-lyra/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/radix-maia/item-example.json b/apps/v4/public/r/styles/radix-maia/item-example.json index b9711047763..7bdc01d1a4a 100644 --- a/apps/v4/public/r/styles/radix-maia/item-example.json +++ b/apps/v4/public/r/styles/radix-maia/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-maia/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-maia/components/example\"\nimport { Button } from \"@/registry/radix-maia/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-maia/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-maia/components/example\"\nimport { Button } from \"@/registry/radix-maia/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-maia/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/radix-mira/item-example.json b/apps/v4/public/r/styles/radix-mira/item-example.json index 626876aa635..eaf23cbd15c 100644 --- a/apps/v4/public/r/styles/radix-mira/item-example.json +++ b/apps/v4/public/r/styles/radix-mira/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-mira/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-mira/components/example\"\nimport { Button } from \"@/registry/radix-mira/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-mira/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-mira/components/example\"\nimport { Button } from \"@/registry/radix-mira/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-mira/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/radix-nova/item-example.json b/apps/v4/public/r/styles/radix-nova/item-example.json index 0916d093a5f..23956041f99 100644 --- a/apps/v4/public/r/styles/radix-nova/item-example.json +++ b/apps/v4/public/r/styles/radix-nova/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-nova/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-nova/components/example\"\nimport { Button } from \"@/registry/radix-nova/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-nova/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-nova/components/example\"\nimport { Button } from \"@/registry/radix-nova/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-nova/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/radix-sera/item-example.json b/apps/v4/public/r/styles/radix-sera/item-example.json index 5fa7c7a0f8e..663c0623547 100644 --- a/apps/v4/public/r/styles/radix-sera/item-example.json +++ b/apps/v4/public/r/styles/radix-sera/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-sera/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-sera/components/example\"\nimport { Button } from \"@/registry/radix-sera/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-sera/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-sera/components/example\"\nimport { Button } from \"@/registry/radix-sera/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-sera/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/public/r/styles/radix-vega/item-example.json b/apps/v4/public/r/styles/radix-vega/item-example.json index 206075c7bb2..bc97159aebe 100644 --- a/apps/v4/public/r/styles/radix-vega/item-example.json +++ b/apps/v4/public/r/styles/radix-vega/item-example.json @@ -10,7 +10,7 @@ "files": [ { "path": "registry/radix-vega/examples/item-example.tsx", - "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-vega/components/example\"\nimport { Button } from \"@/registry/radix-vega/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-vega/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n \n \n \n Title + Description + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n \n \n \n \n \n \n Multiple Actions\n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", + "content": "import Image from \"next/image\"\n\nimport {\n Example,\n ExampleWrapper,\n} from \"@/registry/radix-vega/components/example\"\nimport { Button } from \"@/registry/radix-vega/ui/button\"\nimport {\n Item,\n ItemActions,\n ItemContent,\n ItemDescription,\n ItemFooter,\n ItemGroup,\n ItemHeader,\n ItemMedia,\n ItemSeparator,\n ItemTitle,\n} from \"@/registry/radix-vega/ui/item\"\nimport { IconPlaceholder } from \"@/app/(create)/components/icon-placeholder\"\n\nexport default function ItemExample() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItems() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsExtraSmall() {\n return (\n \n \n \n Title Only\n \n \n \n \n Title + Button\n \n \n \n \n \n \n \n Title + Description\n \n This is a description that provides additional context.\n \n \n \n \n \n Title + Description + Button\n \n This item includes a title, description, and action button.\n \n \n \n \n \n \n \n \n \n \n \n Media + Title\n \n \n \n \n \n \n \n Media + Title + Button\n \n \n \n \n \n \n \n \n \n \n Media + Title + Description\n \n This item includes media, title, and description.\n \n \n \n \n \n \n \n \n Media + Title + Description + Button\n \n Complete item with all components: media, title, description, and\n button.\n \n \n \n \n \n \n \n \n Multiple Actions\n \n Item with multiple action buttons in the actions area.\n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction MutedLinkItems() {\n return (\n \n \n \n \n \n Title Only (Link)\n \n \n \n \n \n \n Title + Description (Link)\n \n Clickable item with title and description.\n \n \n \n \n \n \n \n \n \n \n Media + Title (Link)\n \n \n \n \n \n \n \n \n \n Media + Title + Description (Link)\n \n Complete link item with media, title, and description.\n \n \n \n \n \n \n \n With Actions (Link)\n \n Link item that also has action buttons.\n \n \n \n \n \n \n \n \n \n )\n}\n\nfunction DefaultItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in the group.\n \n \n \n \n Item 2\n Second item in the group.\n \n \n \n \n Item 3\n Third item in the group.\n \n \n \n \n )\n}\n\nfunction OutlineItemGroup() {\n return (\n \n \n \n \n \n \n \n Item 1\n First item with icon.\n \n \n \n \n \n \n \n Item 2\n Second item with icon.\n \n \n \n \n \n \n \n Item 3\n Third item with icon.\n \n \n \n \n )\n}\n\nfunction MutedItemGroup() {\n return (\n \n \n \n \n Item 1\n First item in muted group.\n \n \n \n \n \n \n \n Item 2\n Second item in muted group.\n \n \n \n \n \n \n \n Item 3\n Third item in muted group.\n \n \n \n \n \n \n \n )\n}\n\nfunction ItemSeparatorExample() {\n return (\n \n \n \n \n \n \n \n Inbox\n View all incoming messages.\n \n \n \n \n \n \n \n \n Sent\n View all sent messages.\n \n \n \n \n \n \n \n \n Drafts\n View all draft messages.\n \n \n \n \n \n \n \n \n Archive\n View archived messages.\n \n \n \n \n )\n}\n\nfunction ItemHeaderExamples() {\n return (\n \n \n \n Design System\n \n \n Component Library\n \n A comprehensive collection of reusable UI components for building\n consistent interfaces.\n \n \n \n \n \n Marketing\n \n \n Campaign Analytics\n \n Track performance metrics and engagement rates across all marketing\n channels.\n \n \n \n \n \n Engineering\n \n \n API Documentation\n \n Complete reference guide for all available endpoints and\n authentication methods.\n \n \n \n \n )\n}\n\nfunction ItemFooterExamples() {\n return (\n \n \n \n Quarterly Report Q4 2024\n \n Financial overview including revenue, expenses, and growth metrics\n for the fourth quarter.\n \n \n \n \n Last updated 2 hours ago\n \n \n \n \n \n User Research Findings\n \n Insights from interviews and surveys conducted with 50+ users across\n different demographics.\n \n \n \n \n Created by Sarah Chen\n \n \n \n \n \n Product Roadmap\n \n Planned features and improvements scheduled for the next three\n months.\n \n \n \n 12 comments\n \n \n \n )\n}\n\nfunction ItemHeaderAndFooterExamples() {\n return (\n \n \n \n Team Project\n \n \n Website Redesign\n \n Complete overhaul of the company website with modern design\n principles and improved user experience.\n \n \n \n \n Updated 5 minutes ago\n \n \n \n \n \n Client Work\n \n \n Mobile App Development\n \n Building a cross-platform mobile application for iOS and Android\n with React Native.\n \n \n \n \n Status: In Progress\n \n \n \n \n \n Documentation\n \n \n API Integration Guide\n \n Step-by-step instructions for integrating third-party APIs with\n authentication and error handling.\n \n \n \n \n Category: Technical • 3 attachments\n \n \n \n \n )\n}\n\nfunction DefaultVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n\nfunction OutlineVariantItemsWithImageExtraSmall() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n \n \n \n \n \n \n Document\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n \n \n \n \n \n )\n}\n\nfunction MutedVariantItemsWithImage() {\n return (\n \n \n \n \n \n \n Project Dashboard\n \n Overview of project settings and configuration.\n \n \n \n \n \n \n \n \n Document\n A document with metadata displayed.\n \n \n \n \n \n \n \n \n \n \n File Attachment\n \n Complete file with image, title, description, and action button.\n \n \n \n \n \n \n \n )\n}\n", "type": "registry:example" } ], diff --git a/apps/v4/registry/bases/radix/examples/item-example.tsx b/apps/v4/registry/bases/radix/examples/item-example.tsx index 7cb5eb08848..b90dcea97e3 100644 --- a/apps/v4/registry/bases/radix/examples/item-example.tsx +++ b/apps/v4/registry/bases/radix/examples/item-example.tsx @@ -815,11 +815,17 @@ function DefaultVariantItemsExtraSmall() { Title + Description + + This is a description that provides additional context. + Title + Description + Button + + This item includes a title, description, and action button. + @@ -892,6 +905,9 @@ function DefaultVariantItemsExtraSmall() { Multiple Actions + + Item with multiple action buttons in the actions area. + @@ -1002,6 +1031,9 @@ function OutlineVariantItemsExtraSmall() { Multiple Actions + + Item with multiple action buttons in the actions area. + @@ -1112,6 +1157,9 @@ function MutedVariantItemsExtraSmall() { Multiple Actions + + Item with multiple action buttons in the actions area. +