[{"data":1,"prerenderedAt":1141},["ShallowReactive",2],{"navigation":3,"$fMW9jOOkNpZriWVK3P_bZYNOyYR2IEPvrHsC7cDBlJJc":404,"/docs/components/item":417,"surround-/docs/components/item":1138},[4],{"title":5,"path":6,"stem":7,"children":8,"page":18},"Docs","/docs","docs",[9,273,299,317,330,356],{"title":10,"path":11,"stem":12,"children":13,"new":18,"type":272},"Components","/docs/components","docs/02.components",[14,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268],{"title":15,"path":16,"stem":17,"new":18,"type":19,"children":-1},"Accordion","/docs/components/accordion","docs/components/accordion",false,"component",{"title":21,"path":22,"stem":23,"new":18,"type":19,"children":-1},"Alert","/docs/components/alert","docs/components/alert",{"title":25,"path":26,"stem":27,"new":18,"type":19,"children":-1},"Alert Dialog","/docs/components/alert-dialog","docs/components/alert-dialog",{"title":29,"path":30,"stem":31,"new":18,"type":19,"children":-1},"Aspect Ratio","/docs/components/aspect-ratio","docs/components/aspect-ratio",{"title":33,"path":34,"stem":35,"new":18,"type":19,"children":-1},"Avatar","/docs/components/avatar","docs/components/avatar",{"title":37,"path":38,"stem":39,"new":18,"type":19,"children":-1},"Badge","/docs/components/badge","docs/components/badge",{"title":41,"path":42,"stem":43,"new":18,"type":19,"children":-1},"Breadcrumb","/docs/components/breadcrumb","docs/components/breadcrumb",{"title":45,"path":46,"stem":47,"new":18,"type":19,"children":-1},"Button","/docs/components/button","docs/components/button",{"title":49,"path":50,"stem":51,"new":18,"type":19,"children":-1},"Button Group","/docs/components/button-group","docs/components/button-group",{"title":53,"path":54,"stem":55,"new":18,"type":19,"children":-1},"Calendar","/docs/components/calendar","docs/components/calendar",{"title":57,"path":58,"stem":59,"new":18,"type":19,"children":-1},"Card","/docs/components/card","docs/components/card",{"title":61,"path":62,"stem":63,"new":18,"type":19,"children":-1},"Carousel","/docs/components/carousel","docs/components/carousel",{"title":65,"path":66,"stem":67,"new":18,"type":19,"children":-1},"Chart","/docs/components/chart","docs/components/chart",{"title":69,"path":70,"stem":71,"new":18,"type":19,"children":-1},"Checkbox","/docs/components/checkbox","docs/components/checkbox",{"title":73,"path":74,"stem":75,"new":18,"type":19,"children":-1},"Collapsible","/docs/components/collapsible","docs/components/collapsible",{"title":77,"path":78,"stem":79,"new":18,"type":19,"children":-1},"Combobox","/docs/components/combobox","docs/components/combobox",{"title":81,"path":82,"stem":83,"new":18,"type":19,"children":-1},"Command","/docs/components/command","docs/components/command",{"title":85,"path":86,"stem":87,"new":18,"type":19,"children":-1},"Context Menu","/docs/components/context-menu","docs/components/context-menu",{"title":89,"path":90,"stem":91,"new":18,"type":19,"children":-1},"Data Table","/docs/components/data-table","docs/components/data-table",{"title":93,"path":94,"stem":95,"new":18,"type":19,"children":-1},"Date Picker","/docs/components/date-picker","docs/components/date-picker",{"title":97,"path":98,"stem":99,"new":18,"type":19,"children":-1},"Dialog","/docs/components/dialog","docs/components/dialog",{"title":101,"path":102,"stem":103,"new":18,"type":19,"children":-1},"Drawer","/docs/components/drawer","docs/components/drawer",{"title":105,"path":106,"stem":107,"new":18,"type":19,"children":-1},"Dropdown Menu","/docs/components/dropdown-menu","docs/components/dropdown-menu",{"title":109,"path":110,"stem":111,"new":18,"type":19,"children":-1},"Empty","/docs/components/empty","docs/components/empty",{"title":113,"path":114,"stem":115,"new":18,"type":19,"children":-1},"Field","/docs/components/field","docs/components/field",{"title":117,"path":118,"stem":119,"new":18,"type":19,"children":-1},"Form","/docs/components/form","docs/components/form",{"title":121,"path":122,"stem":123,"new":18,"type":19,"children":-1},"Hover Card","/docs/components/hover-card","docs/components/hover-card",{"title":125,"path":126,"stem":127,"new":18,"type":19,"children":-1},"Input","/docs/components/input","docs/components/input",{"title":129,"path":130,"stem":131,"new":18,"type":19,"children":-1},"Input Group","/docs/components/input-group","docs/components/input-group",{"title":133,"path":134,"stem":135,"new":18,"type":19,"children":-1},"Input OTP","/docs/components/input-otp","docs/components/input-otp",{"title":137,"path":138,"stem":139,"new":18,"type":19,"children":-1},"Item","/docs/components/item","docs/components/item",{"title":141,"path":142,"stem":143,"new":18,"type":19,"children":-1},"Kbd","/docs/components/kbd","docs/components/kbd",{"title":145,"path":146,"stem":147,"new":18,"type":19,"children":-1},"Label","/docs/components/label","docs/components/label",{"title":149,"path":150,"stem":151,"new":18,"type":19,"children":-1},"Menubar","/docs/components/menubar","docs/components/menubar",{"title":153,"path":154,"stem":155,"new":18,"type":19,"children":-1},"Native Select","/docs/components/native-select","docs/components/native-select",{"title":157,"path":158,"stem":159,"new":18,"type":19,"children":-1},"Navigation Menu","/docs/components/navigation-menu","docs/components/navigation-menu",{"title":161,"path":162,"stem":163,"new":18,"type":19,"children":-1},"Number Field","/docs/components/number-field","docs/components/number-field",{"title":165,"path":166,"stem":167,"new":18,"type":19,"children":-1},"Pagination","/docs/components/pagination","docs/components/pagination",{"title":169,"path":170,"stem":171,"new":18,"type":19,"children":-1},"Pin Input","/docs/components/pin-input","docs/components/pin-input",{"title":173,"path":174,"stem":175,"new":18,"type":19,"children":-1},"Popover","/docs/components/popover","docs/components/popover",{"title":177,"path":178,"stem":179,"new":18,"type":19,"children":-1},"Progress","/docs/components/progress","docs/components/progress",{"title":181,"path":182,"stem":183,"new":18,"type":19,"children":-1},"Radio Group","/docs/components/radio-group","docs/components/radio-group",{"title":185,"path":186,"stem":187,"new":18,"type":19,"children":-1},"Range Calendar","/docs/components/range-calendar","docs/components/range-calendar",{"title":189,"path":190,"stem":191,"new":18,"type":19,"children":-1},"Resizable","/docs/components/resizable","docs/components/resizable",{"title":193,"path":194,"stem":195,"new":18,"type":19,"children":-1},"Scroll Area","/docs/components/scroll-area","docs/components/scroll-area",{"title":197,"path":198,"stem":199,"new":18,"type":19,"children":-1},"Select","/docs/components/select","docs/components/select",{"title":201,"path":202,"stem":203,"new":18,"type":19,"children":-1},"Separator","/docs/components/separator","docs/components/separator",{"title":205,"path":206,"stem":207,"new":18,"type":19,"children":-1},"Sheet","/docs/components/sheet","docs/components/sheet",{"title":209,"path":210,"stem":211,"new":18,"type":19,"children":-1},"Sidebar","/docs/components/sidebar","docs/components/sidebar",{"title":213,"path":214,"stem":215,"new":18,"type":19,"children":-1},"Skeleton","/docs/components/skeleton","docs/components/skeleton",{"title":217,"path":218,"stem":219,"new":18,"type":19,"children":-1},"Slider","/docs/components/slider","docs/components/slider",{"title":221,"path":222,"stem":223,"new":18,"type":19,"children":-1},"Sonner","/docs/components/sonner","docs/components/sonner",{"title":225,"path":226,"stem":227,"new":18,"type":19,"children":-1},"Spinner","/docs/components/spinner","docs/components/spinner",{"title":229,"path":230,"stem":231,"new":18,"type":19,"children":-1},"Stepper","/docs/components/stepper","docs/components/stepper",{"title":233,"path":234,"stem":235,"new":18,"type":19,"children":-1},"Switch","/docs/components/switch","docs/components/switch",{"title":237,"path":238,"stem":239,"new":18,"type":19,"children":-1},"Table","/docs/components/table","docs/components/table",{"title":241,"path":242,"stem":243,"new":18,"type":19,"children":-1},"Tabs","/docs/components/tabs","docs/components/tabs",{"title":245,"path":246,"stem":247,"new":18,"type":19,"children":-1},"Tags Input","/docs/components/tags-input","docs/components/tags-input",{"title":249,"path":250,"stem":251,"new":18,"type":19,"children":-1},"Textarea","/docs/components/textarea","docs/components/textarea",{"title":253,"path":254,"stem":255,"new":18,"type":19,"children":-1},"Toast","/docs/components/toast","docs/components/toast",{"title":257,"path":258,"stem":259,"new":18,"type":19,"children":-1},"Toggle","/docs/components/toggle","docs/components/toggle",{"title":261,"path":262,"stem":263,"new":18,"type":19,"children":-1},"Toggle Group","/docs/components/toggle-group","docs/components/toggle-group",{"title":265,"path":266,"stem":267,"new":18,"type":19,"children":-1},"Tooltip","/docs/components/tooltip","docs/components/tooltip",{"title":269,"path":270,"stem":271,"new":18,"type":19,"children":-1},"Typography","/docs/components/typography","docs/components/typography","group",{"title":274,"path":275,"stem":276,"children":277,"new":18,"type":272},"Installation","/docs/installation","docs/02.installation",[278,283,287,291,295],{"title":279,"path":280,"stem":281,"new":18,"type":282,"children":-1},"Vite","/docs/installation/vite","docs/installation/01.vite","page",{"title":284,"path":285,"stem":286,"new":18,"type":282,"children":-1},"Nuxt","/docs/installation/nuxt","docs/installation/02.nuxt",{"title":288,"path":289,"stem":290,"new":18,"type":282,"children":-1},"Astro","/docs/installation/astro","docs/installation/03.astro",{"title":292,"path":293,"stem":294,"new":18,"type":282,"children":-1},"Laravel","/docs/installation/laravel","docs/installation/04.laravel",{"title":296,"path":297,"stem":298,"new":18,"type":282,"children":-1},"Manual Installation","/docs/installation/manual","docs/installation/05.manual",{"title":300,"path":301,"stem":302,"children":303,"new":18,"type":272},"Dark Mode","/docs/dark-mode","docs/05.dark-mode",[304,307,310,314],{"title":279,"path":305,"stem":306,"new":18,"type":282,"children":-1},"/docs/dark-mode/vite","docs/dark-mode/01.vite",{"title":284,"path":308,"stem":309,"new":18,"type":282,"children":-1},"/docs/dark-mode/nuxt","docs/dark-mode/02.nuxt",{"title":311,"path":312,"stem":313,"new":18,"type":282,"children":-1},"Vitepress","/docs/dark-mode/vitepress","docs/dark-mode/03.vitepress",{"title":288,"path":315,"stem":316,"new":18,"type":282,"children":-1},"/docs/dark-mode/astro","docs/dark-mode/04.astro",{"title":318,"path":319,"stem":320,"children":321,"new":18,"type":272},"Forms","/docs/forms","docs/forms",[322,326],{"title":323,"path":324,"stem":325,"new":18,"type":282,"children":-1},"VeeValidate","/docs/forms/vee-validate","docs/forms/01.vee-validate",{"title":327,"path":328,"stem":329,"new":18,"type":282,"children":-1},"TanStack Form","/docs/forms/tanstack-form","docs/forms/02.tanstack-form",{"title":331,"path":332,"stem":333,"children":334,"new":18,"type":272},"Registry","/docs/registry","docs/registry/index",[335,336,340,344,348,352],{"title":331,"path":332,"stem":333,"new":18,"type":282,"children":-1},{"title":337,"path":338,"stem":339,"new":18,"type":282,"children":-1},"Examples","/docs/registry/examples","docs/registry/examples",{"title":341,"path":342,"stem":343,"new":18,"type":282,"children":-1},"FAQ","/docs/registry/faq","docs/registry/faq",{"title":345,"path":346,"stem":347,"new":18,"type":282,"children":-1},"Getting Started","/docs/registry/getting-started","docs/registry/getting-started",{"title":349,"path":350,"stem":351,"new":18,"type":282,"children":-1},"registry-item.json","/docs/registry/registry-item-json","docs/registry/registry-item-json",{"title":353,"path":354,"stem":355,"new":18,"type":282,"children":-1},"registry.json","/docs/registry/registry-json","docs/registry/registry-json",{"path":6,"stem":7,"title":357,"type":272,"children":358},"Get Started",[359,363,370,374,378,384,388,392,396,400],{"title":360,"path":361,"stem":362,"new":18,"type":282,"children":-1},"Introduction","/docs/introduction","docs/01.introduction",{"title":274,"path":275,"stem":276,"children":364,"new":18,"type":272},[365,366,367,368,369],{"title":279,"path":280,"stem":281,"new":18,"type":282,"children":-1},{"title":284,"path":285,"stem":286,"new":18,"type":282,"children":-1},{"title":288,"path":289,"stem":290,"new":18,"type":282,"children":-1},{"title":292,"path":293,"stem":294,"new":18,"type":282,"children":-1},{"title":296,"path":297,"stem":298,"new":18,"type":282,"children":-1},{"title":371,"path":372,"stem":373,"new":18,"type":282,"children":-1},"components.json","/docs/components-json","docs/03.components-json",{"title":375,"path":376,"stem":377,"new":18,"type":282,"children":-1},"Theming","/docs/theming","docs/04.theming",{"title":300,"path":301,"stem":302,"children":379,"new":18,"type":272},[380,381,382,383],{"title":279,"path":305,"stem":306,"new":18,"type":282,"children":-1},{"title":284,"path":308,"stem":309,"new":18,"type":282,"children":-1},{"title":311,"path":312,"stem":313,"new":18,"type":282,"children":-1},{"title":288,"path":315,"stem":316,"new":18,"type":282,"children":-1},{"title":385,"path":386,"stem":387,"new":18,"type":282,"children":-1},"CLI","/docs/cli","docs/06.cli",{"title":389,"path":390,"stem":391,"new":18,"type":282,"children":-1},"JavaScript","/docs/javascript","docs/07.javascript",{"title":393,"path":394,"stem":395,"new":18,"type":282,"children":-1},"Figma","/docs/figma","docs/09.figma",{"title":397,"path":398,"stem":399,"new":18,"type":282,"children":-1},"Changelog","/docs/changelog","docs/10.changelog",{"title":401,"path":402,"stem":403,"new":18,"type":282,"children":-1},"Legacy Docs","/docs/legacy","docs/11.legacy",{"repo":405},{"id":406,"name":407,"repo":408,"description":409,"createdAt":410,"updatedAt":411,"pushedAt":412,"stars":413,"watchers":414,"forks":415,"defaultBranch":416},658791894,"shadcn-vue","unovue/shadcn-vue","Vue port of shadcn-ui","2023-06-26T13:53:23Z","2026-04-14T10:18:37Z","2026-04-13T06:37:16Z",9755,38,638,"dev",{"id":418,"title":137,"body":419,"description":1130,"extension":1131,"links":1132,"meta":1133,"navigation":1134,"new":18,"path":138,"rawbody":1135,"seo":1136,"stem":139,"__hash__":1137},"content/docs/components/item.md",{"type":420,"value":421,"toc":1101},"minimark",[422,434,441,447,451],[423,424,425,426,429,430,433],"p",{},"The ",[427,428,137],"code",{}," component is a straightforward flex container that can house nearly any type of content. Use it to display a title, description, and actions. Group it with the ",[427,431,432],{},"ItemGroup"," component to create a list of items.",[423,435,436,437,440],{},"You can pretty much achieve the same result with the ",[427,438,439],{},"div"," element and some classes, but I've built this so many times that I decided to create a component for it. Now I use it all the time.",[442,443],"component-preview",{"name":444,"className":445},"ItemDemo",[446],"[&_.preview]:p-0",[448,449,274],"h2",{"id":450},"installation",[452,453,454,469,482,506,510,519,522,527,530,534,547,550,554,557,560,563,567,570,573,576,580,583,587,594,597,601,604,608,611,614,685,691,697,703,706,711,739,745,749,754,780,786,790,796,837,843,849,853,858,864,890,896,900,905,931,937,941,946,972,978,982,987,1013,1019,1023,1028,1054,1060,1064,1069,1095],"code-tabs",{},[455,456,457,463],"tabs-list",{},[458,459,461],"tabs-trigger",{"value":460},"cli",[423,462,385],{},[458,464,466],{"value":465},"manual",[423,467,468],{},"Manual",[470,471,472],"tabs-content",{"value":460},[473,474,480],"pre",{"className":475,"code":477,"language":478,"meta":479},[476],"language-bash","npx shadcn-vue@latest add item\n","bash","",[427,481,477],{"__ignoreMap":479},[470,483,484],{"value":465},[485,486,487,501],"steps",{},[488,489,490],"step",{},[423,491,492,493,500],{},"Copy and paste the ",[494,495,499],"a",{"href":496,"rel":497},"https://github.com/unovue/shadcn-vue/tree/dev/apps/v4/registry/new-york-v4/ui/item",[498],"nofollow","GitHub source code"," into your project.",[488,502,503],{},[423,504,505],{},"Update the import paths to match your project setup.",[448,507,509],{"id":508},"usage","Usage",[473,511,517],{"className":512,"code":514,"language":515,"meta":516},[513],"language-vue","\u003Cscript setup lang=\"ts\">\nimport {\n  Item,\n  ItemContent,\n  ItemDescription,\n  ItemFooter,\n  ItemHeader,\n  ItemMedia,\n  ItemTitle,\n} from '@/components/ui/item'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CItem>\n    \u003CItemHeader>Item Header\u003C/ItemHeader>\n    \u003CItemMedia />\n    \u003CItemContent>\n      \u003CItemTitle>Item\u003C/ItemTitle>\n      \u003CItemDescription>Item\u003C/ItemDescription>\n    \u003C/ItemContent>\n    \u003CItemFooter>Item Footer\u003C/ItemFooter>\n  \u003C/Item>\n\u003C/template>\n","vue","showLineNumbers",[427,518,514],{"__ignoreMap":479},[448,520,337],{"id":521},"examples",[523,524,526],"h3",{"id":525},"variants","Variants",[442,528],{"name":529},"ItemVariantDemo",[523,531,533],{"id":532},"size","Size",[423,535,425,536,538,539,542,543,546],{},[427,537,137],{}," component has different sizes for different use cases. For example, you can use the ",[427,540,541],{},"sm"," size for a compact item or the ",[427,544,545],{},"default"," size for a standard item.",[442,548],{"name":549},"ItemSizeDemo",[523,551,553],{"id":552},"icon","Icon",[442,555],{"name":556},"ItemIconDemo",[523,558,33],{"id":559},"avatar",[442,561],{"name":562},"ItemAvatarDemo",[523,564,566],{"id":565},"image","Image",[442,568],{"name":569},"ItemImageDemo",[523,571,572],{"id":272},"Group",[442,574],{"name":575},"ItemGroupDemo",[523,577,579],{"id":578},"header","Header",[442,581],{"name":582},"ItemHeaderDemo",[523,584,586],{"id":585},"link","Link",[423,588,589,590,593],{},"To render an item as a link, use the ",[427,591,592],{},"as-child"," prop. The hover and focus states will be applied to the anchor element.",[442,595],{"name":596},"ItemLinkDemo",[523,598,600],{"id":599},"dropdown","Dropdown",[442,602],{"name":603},"ItemDropdownDemo",[448,605,607],{"id":606},"api-reference","API Reference",[523,609,137],{"id":610},"item",[423,612,613],{},"The main component for displaying content with media, title, description, and actions.",[615,616,617,633],"table",{},[618,619,620],"thead",{},[621,622,623,627,630],"tr",{},[624,625,626],"th",{},"Prop",[624,628,629],{},"Type",[624,631,632],{},"Default",[634,635,636,654,669],"tbody",{},[621,637,638,644,649],{},[639,640,641],"td",{},[427,642,643],{},"variant",[639,645,646],{},[427,647,648],{},"\"default\" | \"outline\" | \"muted\"",[639,650,651],{},[427,652,653],{},"\"default\"",[621,655,656,660,665],{},[639,657,658],{},[427,659,532],{},[639,661,662],{},[427,663,664],{},"\"default\" | \"sm\"",[639,666,667],{},[427,668,653],{},[621,670,671,675,680],{},[639,672,673],{},[427,674,592],{},[639,676,677],{},[427,678,679],{},"boolean",[639,681,682],{},[427,683,684],{},"false",[473,686,689],{"className":687,"code":688,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItem size=\"\" variant=\"\">\n    \u003CItemMedia />\n    \u003CItemContent>\n      \u003CItemTitle>Item\u003C/ItemTitle>\n      \u003CItemDescription>Item\u003C/ItemDescription>\n    \u003C/ItemContent>\n    \u003CItemActions />\n  \u003C/Item>\n\u003C/template>\n",[427,690,688],{"__ignoreMap":479},[423,692,693,694,696],{},"You can use the ",[427,695,592],{}," prop to render a custom component as the item, for example a link. The hover and focus states will be applied to the custom component.",[473,698,701],{"className":699,"code":700,"language":515,"meta":479},[513],"\u003Cscript setup lang=\"ts\">\nimport {\n  Item,\n  ItemContent,\n  ItemDescription,\n  ItemMedia,\n  ItemTitle,\n} from '@/components/ui/item'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CItem as-child>\n    \u003Ca href=\"/dashboard\">\n      \u003CItemMedia variant=\"icon\">\n        \u003CHome />\n      \u003C/ItemMedia>\n      \u003CItemContent>\n        \u003CItemTitle>Dashboard\u003C/ItemTitle>\n        \u003CItemDescription>\n          Overview of your account and activity.\n        \u003C/ItemDescription>\n      \u003C/ItemContent>\n    \u003C/a>\n  \u003C/Item>\n\u003C/template>\n",[427,702,700],{"__ignoreMap":479},[523,704,432],{"id":705},"itemgroup",[423,707,425,708,710],{},[427,709,432],{}," component is a container that groups related items together with consistent styling.",[615,712,713,723],{},[618,714,715],{},[621,716,717,719,721],{},[624,718,626],{},[624,720,629],{},[624,722,632],{},[634,724,725],{},[621,726,727,732,737],{},[639,728,729],{},[427,730,731],{},"class",[639,733,734],{},[427,735,736],{},"string",[639,738],{},[473,740,743],{"className":741,"code":742,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemGroup>\n    \u003CItem />\n    \u003CItem />\n  \u003C/ItemGroup>\n\u003C/template>\n",[427,744,742],{"__ignoreMap":479},[523,746,748],{"id":747},"itemseparator","ItemSeparator",[423,750,425,751,753],{},[427,752,748],{}," component is a separator that separates items in the item group.",[615,755,756,766],{},[618,757,758],{},[621,759,760,762,764],{},[624,761,626],{},[624,763,629],{},[624,765,632],{},[634,767,768],{},[621,769,770,774,778],{},[639,771,772],{},[427,773,731],{},[639,775,776],{},[427,777,736],{},[639,779],{},[473,781,784],{"className":782,"code":783,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemGroup>\n    \u003CItem />\n    \u003CItemSeparator />\n    \u003CItem />\n  \u003C/ItemGroup>\n\u003C/template>\n",[427,785,783],{"__ignoreMap":479},[523,787,789],{"id":788},"itemmedia","ItemMedia",[423,791,792,793,795],{},"Use the ",[427,794,789],{}," component to display media content such as icons, images, or avatars.",[615,797,798,808],{},[618,799,800],{},[621,801,802,804,806],{},[624,803,626],{},[624,805,629],{},[624,807,632],{},[634,809,810,825],{},[621,811,812,816,821],{},[639,813,814],{},[427,815,643],{},[639,817,818],{},[427,819,820],{},"\"default\" | \"icon\" | \"image\"",[639,822,823],{},[427,824,653],{},[621,826,827,831,835],{},[639,828,829],{},[427,830,731],{},[639,832,833],{},[427,834,736],{},[639,836],{},[473,838,841],{"className":839,"code":840,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemMedia variant=\"icon\">\n    \u003CIcon />\n  \u003C/ItemMedia>\n\u003C/template>\n",[427,842,840],{"__ignoreMap":479},[473,844,847],{"className":845,"code":846,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemMedia variant=\"image\">\n    \u003Cimg src=\"...\" alt=\"...\">\n  \u003C/ItemMedia>\n\u003C/template>\n",[427,848,846],{"__ignoreMap":479},[523,850,852],{"id":851},"itemcontent","ItemContent",[423,854,425,855,857],{},[427,856,852],{}," component wraps the title and description of the item.",[423,859,860,861,863],{},"You can skip ",[427,862,852],{}," if you only need a title.",[615,865,866,876],{},[618,867,868],{},[621,869,870,872,874],{},[624,871,626],{},[624,873,629],{},[624,875,632],{},[634,877,878],{},[621,879,880,884,888],{},[639,881,882],{},[427,883,731],{},[639,885,886],{},[427,887,736],{},[639,889],{},[473,891,894],{"className":892,"code":893,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemContent>\n    \u003CItemTitle>Item\u003C/ItemTitle>\n    \u003CItemDescription>Item\u003C/ItemDescription>\n  \u003C/ItemContent>\n\u003C/template>\n",[427,895,893],{"__ignoreMap":479},[523,897,899],{"id":898},"itemtitle","ItemTitle",[423,901,792,902,904],{},[427,903,899],{}," component to display the title of the item.",[615,906,907,917],{},[618,908,909],{},[621,910,911,913,915],{},[624,912,626],{},[624,914,629],{},[624,916,632],{},[634,918,919],{},[621,920,921,925,929],{},[639,922,923],{},[427,924,731],{},[639,926,927],{},[427,928,736],{},[639,930],{},[473,932,935],{"className":933,"code":934,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemTitle>Item Title\u003C/ItemTitle>\n\u003C/template>\n",[427,936,934],{"__ignoreMap":479},[523,938,940],{"id":939},"itemdescription","ItemDescription",[423,942,792,943,945],{},[427,944,940],{}," component to display the description of the item.",[615,947,948,958],{},[618,949,950],{},[621,951,952,954,956],{},[624,953,626],{},[624,955,629],{},[624,957,632],{},[634,959,960],{},[621,961,962,966,970],{},[639,963,964],{},[427,965,731],{},[639,967,968],{},[427,969,736],{},[639,971],{},[473,973,976],{"className":974,"code":975,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemDescription>Item description\u003C/ItemDescription>\n\u003C/template>\n",[427,977,975],{"__ignoreMap":479},[523,979,981],{"id":980},"itemactions","ItemActions",[423,983,792,984,986],{},[427,985,981],{}," component to display action buttons or other interactive elements.",[615,988,989,999],{},[618,990,991],{},[621,992,993,995,997],{},[624,994,626],{},[624,996,629],{},[624,998,632],{},[634,1000,1001],{},[621,1002,1003,1007,1011],{},[639,1004,1005],{},[427,1006,731],{},[639,1008,1009],{},[427,1010,736],{},[639,1012],{},[473,1014,1017],{"className":1015,"code":1016,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemActions>\n    \u003CButton>Action\u003C/Button>\n    \u003CButton>Action\u003C/Button>\n  \u003C/ItemActions>\n\u003C/template>\n",[427,1018,1016],{"__ignoreMap":479},[523,1020,1022],{"id":1021},"itemheader","ItemHeader",[423,1024,792,1025,1027],{},[427,1026,1022],{}," component to display a header in the item.",[615,1029,1030,1040],{},[618,1031,1032],{},[621,1033,1034,1036,1038],{},[624,1035,626],{},[624,1037,629],{},[624,1039,632],{},[634,1041,1042],{},[621,1043,1044,1048,1052],{},[639,1045,1046],{},[427,1047,731],{},[639,1049,1050],{},[427,1051,736],{},[639,1053],{},[473,1055,1058],{"className":1056,"code":1057,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemHeader>Item Header\u003C/ItemHeader>\n\u003C/template>\n",[427,1059,1057],{"__ignoreMap":479},[523,1061,1063],{"id":1062},"itemfooter","ItemFooter",[423,1065,792,1066,1068],{},[427,1067,1063],{}," component to display a footer in the item.",[615,1070,1071,1081],{},[618,1072,1073],{},[621,1074,1075,1077,1079],{},[624,1076,626],{},[624,1078,629],{},[624,1080,632],{},[634,1082,1083],{},[621,1084,1085,1089,1093],{},[639,1086,1087],{},[427,1088,731],{},[639,1090,1091],{},[427,1092,736],{},[639,1094],{},[473,1096,1099],{"className":1097,"code":1098,"language":515,"meta":479},[513],"\u003Ctemplate>\n  \u003CItemFooter>Item Footer\u003C/ItemFooter>\n\u003C/template>\n",[427,1100,1098],{"__ignoreMap":479},{"title":479,"searchDepth":1102,"depth":1102,"links":1103},2,[1104,1105,1106,1118],{"id":450,"depth":1102,"text":274},{"id":508,"depth":1102,"text":509},{"id":521,"depth":1102,"text":337,"children":1107},[1108,1110,1111,1112,1113,1114,1115,1116,1117],{"id":525,"depth":1109,"text":526},3,{"id":532,"depth":1109,"text":533},{"id":552,"depth":1109,"text":553},{"id":559,"depth":1109,"text":33},{"id":565,"depth":1109,"text":566},{"id":272,"depth":1109,"text":572},{"id":578,"depth":1109,"text":579},{"id":585,"depth":1109,"text":586},{"id":599,"depth":1109,"text":600},{"id":606,"depth":1102,"text":607,"children":1119},[1120,1121,1122,1123,1124,1125,1126,1127,1128,1129],{"id":610,"depth":1109,"text":137},{"id":705,"depth":1109,"text":432},{"id":747,"depth":1109,"text":748},{"id":788,"depth":1109,"text":789},{"id":851,"depth":1109,"text":852},{"id":898,"depth":1109,"text":899},{"id":939,"depth":1109,"text":940},{"id":980,"depth":1109,"text":981},{"id":1021,"depth":1109,"text":1022},{"id":1062,"depth":1109,"text":1063},"A versatile component that you can use to display any content.","md",null,{"component":1134},true,"---\ntitle: Item\ndescription: A versatile component that you can use to display any content.\ncomponent: true\n---\n\nThe `Item` component is a straightforward flex container that can house nearly any type of content. Use it to display a title, description, and actions. Group it with the `ItemGroup` component to create a list of items.\n\nYou can pretty much achieve the same result with the `div` element and some classes, but I've built this so many times that I decided to create a component for it. Now I use it all the time.\n\n::component-preview\n---\nname: ItemDemo\nclass: '[&_.preview]:p-0'\n---\n::\n\n## Installation\n\n::code-tabs\n\n::tabs-list\n\n  ::tabs-trigger{value=\"cli\"}\n  CLI\n  ::\n\n  ::tabs-trigger{value=\"manual\"}\n  Manual\n  ::\n\n::\n\n::tabs-content{value=\"cli\"}\n\n```bash\nnpx shadcn-vue@latest add item\n```\n\n::\n\n::tabs-content{value=\"manual\"}\n  ::steps\n    ::step\n    Copy and paste the [GitHub source code](https://github.com/unovue/shadcn-vue/tree/dev/apps/v4/registry/new-york-v4/ui/item) into your project.\n    ::\n\n    ::step\n    Update the import paths to match your project setup.\n    ::\n  ::\n::\n\n## Usage\n\n```vue showLineNumbers\n\u003Cscript setup lang=\"ts\">\nimport {\n  Item,\n  ItemContent,\n  ItemDescription,\n  ItemFooter,\n  ItemHeader,\n  ItemMedia,\n  ItemTitle,\n} from '@/components/ui/item'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CItem>\n    \u003CItemHeader>Item Header\u003C/ItemHeader>\n    \u003CItemMedia />\n    \u003CItemContent>\n      \u003CItemTitle>Item\u003C/ItemTitle>\n      \u003CItemDescription>Item\u003C/ItemDescription>\n    \u003C/ItemContent>\n    \u003CItemFooter>Item Footer\u003C/ItemFooter>\n  \u003C/Item>\n\u003C/template>\n```\n\n## Examples\n\n### Variants\n\n::component-preview\n---\nname: ItemVariantDemo\n---\n::\n\n### Size\n\nThe `Item` component has different sizes for different use cases. For example, you can use the `sm` size for a compact item or the `default` size for a standard item.\n\n::component-preview\n---\nname: ItemSizeDemo\n---\n::\n\n### Icon\n\n::component-preview\n---\nname: ItemIconDemo\n---\n::\n\n### Avatar\n\n::component-preview\n---\nname: ItemAvatarDemo\n---\n::\n\n### Image\n\n::component-preview\n---\nname: ItemImageDemo\n---\n::\n\n### Group\n\n::component-preview\n---\nname: ItemGroupDemo\n---\n::\n\n### Header\n\n::component-preview\n---\nname: ItemHeaderDemo\n---\n::\n\n### Link\n\nTo render an item as a link, use the `as-child` prop. The hover and focus states will be applied to the anchor element.\n\n::component-preview\n---\nname: ItemLinkDemo\n---\n::\n\n### Dropdown\n\n::component-preview\n---\nname: ItemDropdownDemo\n---\n::\n\n## API Reference\n\n### Item\n\nThe main component for displaying content with media, title, description, and actions.\n\n| Prop       | Type                                | Default     |\n| ---------- | ----------------------------------- | ----------- |\n| `variant`  | `\"default\" \\| \"outline\" \\| \"muted\"` | `\"default\"` |\n| `size`     | `\"default\" \\| \"sm\"`                 | `\"default\"` |\n| `as-child` | `boolean`                           | `false`     |\n\n```vue\n\u003Ctemplate>\n  \u003CItem size=\"\" variant=\"\">\n    \u003CItemMedia />\n    \u003CItemContent>\n      \u003CItemTitle>Item\u003C/ItemTitle>\n      \u003CItemDescription>Item\u003C/ItemDescription>\n    \u003C/ItemContent>\n    \u003CItemActions />\n  \u003C/Item>\n\u003C/template>\n```\n\nYou can use the `as-child` prop to render a custom component as the item, for example a link. The hover and focus states will be applied to the custom component.\n\n```vue\n\u003Cscript setup lang=\"ts\">\nimport {\n  Item,\n  ItemContent,\n  ItemDescription,\n  ItemMedia,\n  ItemTitle,\n} from '@/components/ui/item'\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CItem as-child>\n    \u003Ca href=\"/dashboard\">\n      \u003CItemMedia variant=\"icon\">\n        \u003CHome />\n      \u003C/ItemMedia>\n      \u003CItemContent>\n        \u003CItemTitle>Dashboard\u003C/ItemTitle>\n        \u003CItemDescription>\n          Overview of your account and activity.\n        \u003C/ItemDescription>\n      \u003C/ItemContent>\n    \u003C/a>\n  \u003C/Item>\n\u003C/template>\n```\n\n### ItemGroup\n\nThe `ItemGroup` component is a container that groups related items together with consistent styling.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemGroup>\n    \u003CItem />\n    \u003CItem />\n  \u003C/ItemGroup>\n\u003C/template>\n```\n\n### ItemSeparator\n\nThe `ItemSeparator` component is a separator that separates items in the item group.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemGroup>\n    \u003CItem />\n    \u003CItemSeparator />\n    \u003CItem />\n  \u003C/ItemGroup>\n\u003C/template>\n```\n\n### ItemMedia\n\nUse the `ItemMedia` component to display media content such as icons, images, or avatars.\n\n| Prop        | Type                             | Default     |\n| ----------- | -------------------------------- | ----------- |\n| `variant`   | `\"default\" \\| \"icon\" \\| \"image\"` | `\"default\"` |\n| `class`     | `string`                         |             |\n\n```vue\n\u003Ctemplate>\n  \u003CItemMedia variant=\"icon\">\n    \u003CIcon />\n  \u003C/ItemMedia>\n\u003C/template>\n```\n\n```vue\n\u003Ctemplate>\n  \u003CItemMedia variant=\"image\">\n    \u003Cimg src=\"...\" alt=\"...\">\n  \u003C/ItemMedia>\n\u003C/template>\n```\n\n### ItemContent\n\nThe `ItemContent` component wraps the title and description of the item.\n\nYou can skip `ItemContent` if you only need a title.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemContent>\n    \u003CItemTitle>Item\u003C/ItemTitle>\n    \u003CItemDescription>Item\u003C/ItemDescription>\n  \u003C/ItemContent>\n\u003C/template>\n```\n\n### ItemTitle\n\nUse the `ItemTitle` component to display the title of the item.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemTitle>Item Title\u003C/ItemTitle>\n\u003C/template>\n```\n\n### ItemDescription\n\nUse the `ItemDescription` component to display the description of the item.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemDescription>Item description\u003C/ItemDescription>\n\u003C/template>\n```\n\n### ItemActions\n\nUse the `ItemActions` component to display action buttons or other interactive elements.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemActions>\n    \u003CButton>Action\u003C/Button>\n    \u003CButton>Action\u003C/Button>\n  \u003C/ItemActions>\n\u003C/template>\n```\n\n### ItemHeader\n\nUse the `ItemHeader` component to display a header in the item.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemHeader>Item Header\u003C/ItemHeader>\n\u003C/template>\n```\n\n### ItemFooter\n\nUse the `ItemFooter` component to display a footer in the item.\n\n| Prop        | Type     | Default |\n| ----------- | -------- | ------- |\n| `class`     | `string` |         |\n\n```vue\n\u003Ctemplate>\n  \u003CItemFooter>Item Footer\u003C/ItemFooter>\n\u003C/template>\n```\n",{"title":137,"description":1130},"QFy5Ev0_072LznZir1-VEQWxvSwpS9OUjWkTdU-eWDA",[1139,1140],{"title":133,"path":134,"stem":135,"children":-1},{"title":141,"path":142,"stem":143,"children":-1},1776258642531]