diff --git a/content/2.components/1.prose.md b/content/2.components/1.prose.md index a11c1103..3b64c597 100644 --- a/content/2.components/1.prose.md +++ b/content/2.components/1.prose.md @@ -4,10 +4,10 @@ description: A showcase of all shadcn-docs prose components. icon: lucide:letter-text --- -### Heading +## Heading -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4 md:p-8"} # Heading 1 ## Heading 2 ### Heading 3 @@ -16,7 +16,7 @@ icon: lucide:letter-text ###### Heading 6 :: - ```md [Code] + ```md # Heading 1 ## Heading 2 ### Heading 3 @@ -26,63 +26,108 @@ icon: lucide:letter-text ``` :: -### Link +## Link -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} [Link](/getting-started/introduction) :: - ```md [Code] + ```md [Link](/getting-started/introduction) ``` :: -### Blockquote +## Blockquote -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. :: - ```md [Code] + ```md > Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ``` :: -### Code Block +## Code Block -::code-group - ::div{label="Preview" class="md:p-4"} - #### Code Block +::stack + ::div{class="p-4"} ```ts export default () => { console.log('Code block'); }; ``` + :: + ````md + ```ts + export default () => { + console.log('Code block'); + }; + ``` + ```` +:: - #### With Title +### With Title + +::stack + ::div{class="p-4"} ```ts [nuxt.config.ts] export default defineNuxtConfig({ // My Nuxt config }); ``` + :: + ````md + ```ts [nuxt.config.ts] + export default defineNuxtConfig({ + // My Nuxt config + }); + ``` + ```` +:: - #### Highlight Lines +### Highlight Lines + +::stack + ::div{class="p-4"} ```ts{2} export default () => { console.log('Code block'); }; ``` + :: + ````md + ```ts{2} + export default () => { + console.log('Code block'); + }; + ``` + ```` +:: - #### Line Numbers +### Line Numbers +::stack + ::div{class="p-4"} + ```ts{1} line-numbers + // line-numbers is enabled + const line2 = 'This is line 2'; + const line3 = 'This is line 3'; + ``` + :: + ````md ```ts{1} line-numbers // line-numbers is enabled const line2 = 'This is line 2'; const line3 = 'This is line 3'; ``` + ```` +:: - #### Fixed Height +### Fixed Height +::stack + ::div{class="p-4"} ```ts height=150 const parsedMeta = computed(() => { const split = meta?.split(' ') ?? []; @@ -96,45 +141,8 @@ icon: lucide:letter-text return params; }); ``` - - #### Custom Icon - ```ts [Custom Icon] icon=lucide:code-xml line-numbers - // line-numbers is enabled - const line2 = 'This is line 2'; - const line3 = 'This is line 3'; - ``` :: - - ````md [Code] - #### Code Block - ```ts - export default () => { - console.log('Code block'); - }; - ``` - - #### With Title - ```ts [nuxt.config.ts] - export default defineNuxtConfig({ - // My Nuxt config - }); - ``` - - #### Highlight Lines - ```ts{2} - export default () => { - console.log('Code block'); - }; - ``` - - #### Line Numbers - ```ts{1} line-numbers - // line-numbers is enabled - const line2 = 'This is line 2'; - const line3 = 'This is line 3'; - ``` - - #### Fixed Height + ````md ```ts height=150 const parsedMeta = computed(() => { const split = meta?.split(' ') ?? []; @@ -148,8 +156,19 @@ icon: lucide:letter-text return params; }); ``` + ```` +:: - #### Custom Icon +### Custom Icon +::stack + ::div{class="p-4"} + ```ts [Custom Icon] icon=lucide:code-xml line-numbers + // line-numbers is enabled + const line2 = 'This is line 2'; + const line3 = 'This is line 3'; + ``` + :: + ````md ```ts [Custom Icon] icon=lucide:code-xml line-numbers // line-numbers is enabled const line2 = 'This is line 2'; @@ -158,26 +177,26 @@ icon: lucide:letter-text ```` :: -### Inline Code +## Inline Code -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} `code inline` `const codeInline: string = 'highlighted code inline'`{lang="ts"} :: - ```md [Code] + ```md `code inline` `const codeInline: string = 'highlighted code inline'`{lang="ts"} ``` :: -### Horizontal Rule +## Horizontal Rule -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} Before --- @@ -185,7 +204,7 @@ icon: lucide:letter-text After :: - ```md [Code] + ```md Before --- @@ -194,90 +213,90 @@ icon: lucide:letter-text ``` :: -### Image +## Image -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} ![Photo by Drew Beamer](https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2&q=80) :: - ```md [Code] + ```md ![Photo by Drew Beamer](https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2&q=80) ``` :: -### Unordered List +## Unordered List -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} - Foo - Bar - Baz :: - ```md [Code] + ```md - Foo - Bar - Baz ``` :: -### Ordered List +## Ordered List -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} 1. Foo 2. Bar 3. Baz :: - ```md [Code] + ```md 1. Foo 2. Bar 3. Baz ``` :: -### Paragraph +## Paragraph -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. :: - ```md [Code] + ```md Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ``` :: -### Strong +## Strong -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} **Just a strong paragraph.** :: - ```md [Code] + ```md **Just a strong paragraph.** ``` :: -### Italic +## Italic -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} _Just an italic paragraph._ :: - ```md [Code] + ```md _Just an italic paragraph._ ``` :: -### Table +## Table -::code-group - ::div{label="Preview" class="md:p-4"} +::stack + ::div{class="p-4"} | Key | Type | Description | | --- | --------- | ------------------------------------------- | | 1 | Wonderful | Table with `some long code snippet example` | @@ -285,7 +304,7 @@ icon: lucide:letter-text | 3 | Wonderful | Website | :: - ```md [Code] + ```md | Key | Type | Description | | --- | --------- | ------------------------------------------- | | 1 | Wonderful | Table with `some long code snippet example` | @@ -294,10 +313,10 @@ icon: lucide:letter-text ``` :: -### Overview +## Overview -::code-group - ::div{label="Preview" class="p-4"} +::stack + ::div{class="p-8"} # The Joke Tax Chronicles Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money. @@ -339,7 +358,7 @@ icon: lucide:letter-text The moral of the story is: never underestimate the power of a good laugh and always be careful of bad ideas. :: - ```md [Code] + ```md height=400 # The Joke Tax Chronicles Once upon a time, in a far-off land, there was a very lazy king who spent all day lounging on his throne. One day, his advisors came to him with a problem: the kingdom was running out of money. diff --git a/content/2.components/2.docs/alert.md b/content/2.components/2.docs/alert.md index 5c922e15..ff7ac5f7 100644 --- a/content/2.components/2.docs/alert.md +++ b/content/2.components/2.docs/alert.md @@ -10,88 +10,149 @@ badges: target: _blank --- -::code-group - ::div{label="Preview" class="md:p-4"} - ::alert{icon="lucide:info"} - A **default** alert with `code` and a [link](/). - :: +## Usage - ::alert{type="secondary" icon="lucide:info"} - A **secondary** alert with `code` and a [link](/). - :: +::stack + ::div{class="p-4"} + ::alert{icon="lucide:info"} + A **default** alert with `code` and a [link](/). + :: + + ::alert{type="secondary" icon="lucide:info"} + A **secondary** alert with `code` and a [link](/). + :: + :: + ```mdc + ::alert{icon="lucide:info"} + A **default** alert with `code` and a [link](/). + :: + + ::alert{type="secondary" icon="lucide:info"} + A **secondary** alert with `code` and a [link](/). + :: + ``` +:: + +### Link + +::stack + ::div{class="p-4"} + ::alert{to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank" icon="lucide:link"} + A **link** alert. + :: + :: + ```mdc + ::alert{to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank" icon="lucide:link"} + A **link** alert. + :: + ``` +:: + +### Variants +::tabs{variant="line"} + ::stack{label="info" icon="lucide:info"} + ::div{class="p-3"} + ::alert{type="info" icon="lucide:info"} + An **info** alert with `code` and a [link](/). + :: + :: + ```mdc ::alert{type="info" icon="lucide:info"} An **info** alert with `code` and a [link](/). :: + ``` + :: + ::stack{label="note" icon="lucide:pencil"} + ::div{class="p-3"} ::alert{type="note" icon="lucide:pencil"} A **note** alert with `code` and a [link](/). :: + :: + ```mdc + ::alert{type="note" icon="lucide:pencil"} + A **note** alert with `code` and a [link](/). + :: + ``` + :: + ::stack{label="success" icon="lucide:lightbulb"} + ::div{class="p-3"} ::alert{type="success" icon="lucide:lightbulb"} A **success** alert with `code` and a [link](/). :: + :: + ```mdc + ::alert{type="success" icon="lucide:lightbulb"} + A **success** alert with `code` and a [link](/). + :: + ``` + :: + ::stack{label="example" icon="lucide:test-tube"} + ::div{class="p-3"} + ::alert{type="example" icon="lucide:test-tube"} + An **example** alert with `code` and a [link](/). + :: + :: + ```mdc ::alert{type="example" icon="lucide:test-tube"} An **example** alert with `code` and a [link](/). :: + ``` + :: + ::stack{label="warning" icon="lucide:triangle-alert"} + ::div{class="p-3"} + ::alert{type="warning" icon="lucide:triangle-alert"} + A **warning** alert with `code` and a [link](/). + :: + :: + ```mdc ::alert{type="warning" icon="lucide:triangle-alert"} A **warning** alert with `code` and a [link](/). :: + ``` + :: + ::stack{label="danger" icon="lucide:circle-x"} + ::div{class="p-3"} ::alert{type="danger" icon="lucide:circle-x"} A **danger** alert with `code` and a [link](/). :: - - ::alert{title="Title" icon="lucide:layout-list"} - An alert with a title. :: - - ::alert{to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank" icon="lucide:link"} - A **link** alert. + ```mdc + ::alert{type="danger" icon="lucide:circle-x"} + A **danger** alert with `code` and a [link](/). :: + ``` :: +:: - ```mdc [Code] - ::alert{icon="lucide:info"} - A **default** alert with `code` and a [link](/). - :: - - ::alert{type="secondary" icon="lucide:info"} - A **secondary** alert with `code` and a [link](/). - :: - - ::alert{type="info" icon="lucide:info"} - An **info** alert with `code` and a [link](/). - :: - - ::alert{type="note" icon="lucide:pencil"} - A **note** alert with `code` and a [link](/). - :: - - ::alert{type="success" icon="lucide:lightbulb"} - A **success** alert with `code` and a [link](/). - :: +### Title - ::alert{type="example" icon="lucide:test-tube"} - An **example** alert with `code` and a [link](/). - :: - - ::alert{type="warning" icon="lucide:triangle-alert"} - A **warning** alert with `code` and a [link](/). +::stack + ::div{class="p-4"} + ::alert{title="Title" icon="lucide:layout-list"} + An alert with a title. :: - - ::alert{type="danger" icon="lucide:circle-x"} - A **danger** alert with `code` and a [link](/). :: - + ```mdc ::alert{title="Title" icon="lucide:layout-list"} An alert with a title. :: - - ::alert{to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank" icon="lucide:link"} - A **link** alert. - :: ``` :: + +## Props + +::field-group + :field{name="title" type="string"}[Alert title] + :field{name="icon" type="string"}[Alert icon] + :field{name="type" type="'default' | 'info' | 'warning' | 'success' | 'danger' | 'secondary'" default-value="'default'"} + :field{name="to" type="string"}[Link URL] + :field{name="target" type="Target"}[A `target` attribute value to apply on the link] + :field{name="external" type="boolean"}[Alias to `target='_blank'`] + :field{name="showLinkIcon" type="boolean" default-value="true"}[Whether to show the link indicator :icon{name="lucide:arrow-up-right"}] +:: diff --git a/content/2.components/2.docs/badge.md b/content/2.components/2.docs/badge.md index 49256944..f4082fa6 100644 --- a/content/2.components/2.docs/badge.md +++ b/content/2.components/2.docs/badge.md @@ -11,46 +11,115 @@ badges: target: _blank --- -::code-group - ::div{label="Preview" class="md:p-4"} - ::badge - Default +## Usage + +::stack + ::div{class="p-3"} + ::badge + Default + :: + ::badge{size="sm"} + Small + :: + :: + ```mdc + ::badge + Default + :: + ::badge{size="sm"} + Small + :: + ``` +:: + +### Variants + +::tabs{variant="line"} + ::stack{label="outline"} + ::div{class="p-3"} + :badge[Outline]{variant="outline"} :: - ::badge{size="sm"} - Small + ```mdc + :badge[Outline]{variant="outline"} + ``` + :: + + ::stack{label="secondary"} + ::div{class="p-3"} + :badge[Secondary]{variant="secondary"} + :: + ```mdc + :badge[Secondary]{variant="secondary"} + ``` + :: + + ::stack{label="info"} + ::div{class="p-3"} + :badge[Info]{type="info"} :: - ::badge{type="info"} - Info + ```mdc + :badge[Info]{type="info"} + ``` + :: + + ::stack{label="warning"} + ::div{class="p-3"} + :badge[Warning]{type="warning"} :: + ```mdc :badge[Warning]{type="warning"} + ``` + :: + + ::stack{label="success"} + ::div{class="p-3"} + :badge[Success]{type="success"} + :: + ```mdc :badge[Success]{type="success"} + ``` + :: + + ::stack{label="lime"} + ::div{class="p-3"} :badge[lime]{type="lime"} - :badge[Danger]{type="danger"} - :badge[Outline]{variant="outline"} - :badge[Secondary]{variant="secondary"} - ::badge{variant="outline" type="info" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} - Link :: + ```mdc + :badge[lime]{type="lime"} + ``` :: - ```mdc [Code] - ::badge - Default + ::stack{label="danger"} + ::div{class="p-3"} + :badge[Danger]{type="danger"} + :: + ```mdc + :badge[Danger]{type="danger"} + ``` :: - ::badge{size="sm"} - Small +:: + +### Link + +::stack + ::div{class="p-3"} + ::badge{variant="outline" type="info" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} + Link :: - ::badge{type="info"} - Info :: - :badge[Warning]{type="warning"} - :badge[Success]{type="success"} - :badge[lime]{type="lime"} - :badge[Danger]{type="danger"} - :badge[Outline]{variant="outline"} - :badge[Secondary]{variant="secondary"} + ```mdc ::badge{variant="outline" type="info" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} - Link + Link :: ``` :: + +## Props + +::field-group + :field{name="type" type="'default' | 'info' | 'warning' | 'success' | 'danger' | 'lime'" default-value="'default'"} + :field{name="variant" type="'default' | 'secondary' | 'destructive' | 'outline'" default-value="'default'"} + :field{name="size" type="'md' | 'sm'" default-value="'md'"} + :field{name="to" type="string"}[Link URL] + :field{name="target" type="Target"}[A `target` attribute value to apply on the link] +:: diff --git a/content/2.components/2.docs/button-link.md b/content/2.components/2.docs/button-link.md index 40053d2c..ca3e5549 100644 --- a/content/2.components/2.docs/button-link.md +++ b/content/2.components/2.docs/button-link.md @@ -12,15 +12,42 @@ badges: - value: 0.6.5 --- -::code-group - ::div{label="Preview" class="md:p-4 flex gap-4"} - :button-link[Get Started]{right-icon="lucide:arrow-up-right" to="/getting-started" target="_blank"} - :button-link[GitHub]{left-icon="lucide:github" variant="outline" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} - :button-link[Ghost]{left-icon="lucide:ghost" variant="ghost" href="https://github.com/ZTL-UwU/shadcn-docs-nuxt" blank} +## Usage + +::stack + ::div{class="p-3 flex gap-4"} + ::button-link{right-icon="lucide:arrow-up-right" to="/getting-started" target="_blank"} + Get Started + :: + ::button-link{left-icon="lucide:github" variant="outline" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} + GitHub + :: + ::button-link{left-icon="lucide:ghost" variant="ghost" href="https://github.com/ZTL-UwU/shadcn-docs-nuxt" blank} + Ghost + :: + :: + ```mdc + ::button-link{right-icon="lucide:arrow-up-right" to="/getting-started" target="_blank"} + Get Started + :: + ::button-link{left-icon="lucide:github" variant="outline" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} + GitHub + :: + ::button-link{left-icon="lucide:ghost" variant="ghost" href="https://github.com/ZTL-UwU/shadcn-docs-nuxt" blank} + Ghost :: - ```mdc [Code] - :button-link[Get Started]{right-icon="lucide:arrow-up-right" to="/getting-started" target="_blank"} - :button-link[GitHub]{left-icon="lucide:github" variant="outline" to="https://github.com/ZTL-UwU/shadcn-docs-nuxt" target="_blank"} - :button-link[Ghost]{left-icon="lucide:ghost" variant="ghost" href="https://github.com/ZTL-UwU/shadcn-docs-nuxt" blank} ``` :: + +## Props + +::field-group + :field{name="variant" type="'default' | 'secondary' | 'link' | 'destructive' | 'outline' | 'ghost'" default-value="'default'"} + :field{name="size" type="'default' | 'icon' | 'sm' | 'xs' | 'lg'" default-value="'default'"} + :field{name="leftIcon" type="string"}[Icon on the left] + :field{name="rightIcon" type="string"}[Icon on the right] + :field{name="to" type="string"}[Link URL] + :field{name="href" type="string"}[Alias to `to`] + :field{name="target" type="Target"}[A `target` attribute value to apply on the link] + :field{name="blank" type="boolean"}[Alias to `target='_blank'`] +:: diff --git a/content/2.components/2.docs/card-group.md b/content/2.components/2.docs/card-group.md index 156661bd..4e6fee0b 100644 --- a/content/2.components/2.docs/card-group.md +++ b/content/2.components/2.docs/card-group.md @@ -11,8 +11,10 @@ badges: target: _blank --- -::code-group - ::div{label="Preview" class="md:p-4"} +## Usage + +::stack + ::div{class="p-4"} ::card-group ::card --- @@ -52,7 +54,7 @@ badges: :: :: :: - ```mdc [Code] + ```mdc ::card-group ::card --- @@ -63,6 +65,7 @@ badges: --- Explore Nuxt built-in components for pages, layouts, head, and more. :: + ::card --- title: Composables @@ -72,6 +75,7 @@ badges: --- Discover Nuxt composable functions for data-fetching, head management and more. :: + ::card --- title: Utils @@ -81,6 +85,7 @@ badges: --- Learn about Nuxt utility functions for navigation, error handling and more. :: + ::card --- title: Commands diff --git a/content/2.components/2.docs/card.md b/content/2.components/2.docs/card.md index de644a6f..ecb18e77 100644 --- a/content/2.components/2.docs/card.md +++ b/content/2.components/2.docs/card.md @@ -14,129 +14,123 @@ badges: target: _blank --- -::code-group - ::div{label="Preview" class="md:p-4"} - ::card - #title - Card with slots - - #description - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - - #content - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip. - - #footer - `Card Footer` - :: - - ::card - --- - title: Card with props - description: Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - footer: Card Footer - icon: 'lucide:box' - --- - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip. - :: - - ::card - --- - title: Horizontal Card - description: Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - icon: 'lucide:fold-horizontal' - icon-size: 26 - horizontal: true - --- - :: - - ::card - --- - to: https://github.com/ZTL-UwU/shadcn-docs-nuxt - target: _blank - --- - #title - Card with link - - #content - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - :: - - ::card - --- - to: https://github.com/ZTL-UwU/shadcn-docs-nuxt - target: _blank - showLinkIcon: false - --- - #title - Disable link icon - - #content - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - :: - - ::card - --- - img: /og-nuxt.png - --- - #title - Image Card - - #content - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - :: - :: +## Usage - ```mdc [Code] +::stack + ::div{class="p-4"} ::card + --- + icon: lucide:box + --- + #title - Card with slots + Card Title #description - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + Description #content - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip. + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ #footer - `Card Footer` + Footer :: - + :: + ```mdc ::card --- - title: Card with props - description: Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. - footer: Card Footer - icon: 'lucide:box' + icon: lucide:box --- - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip. + + #title + Card Title + + #description + Description + + #content + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ + + #footer + Footer :: + ``` +:: +### Link + +::stack + ::div{class="p-4"} ::card --- to: https://github.com/ZTL-UwU/shadcn-docs-nuxt target: _blank + # showLinkIcon: false --- + #title - Card with link + Link Card #content - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ :: - + :: + ```mdc ::card --- to: https://github.com/ZTL-UwU/shadcn-docs-nuxt target: _blank - showLinkIcon: false + # showLinkIcon: false --- + #title - Disable link icon + Link Card #content - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ :: + ``` +:: + +### Horizontal +::stack + ::div{class="p-4"} + ::card + --- + icon: 'lucide:fold-horizontal' + icon-size: 26 + horizontal: true + --- + + #title + Horizontal Card + + #description + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ + :: + :: + ```mdc + ::card + --- + icon: 'lucide:fold-horizontal' + icon-size: 26 + horizontal: true + --- + + #title + Horizontal Card + + #description + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ + :: + ``` +:: + +### Image + +::stack + ::div{class="p-4"} ::card --- img: /og-nuxt.png @@ -145,7 +139,35 @@ badges: Image Card #content - Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ + :: + :: + ```mdc + ::card + --- + img: /og-nuxt.png + --- + #title + Image Card + + #content + Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._ :: ``` :: + +## Props + +::field-group + :field{name="title" type="string"}[Card title] + :field{name="description" type="string"}[Card description] + :field{name="content" type="string"}[Card content] + :field{name="footer" type="string"}[Card footer] + :field{name="icon" type="string"}[Card icon] + :field{name="horizontal" type="boolean" default-value="false"} + :field{name="to" type="string"}[Link URL] + :field{name="target" type="Target"}[A `target` attribute value to apply on the link] + :field{name="iconSize" type="number" default-value="24"} + :field{name="img" type="string"}[Image URL] + :field{name="showLinkIcon" type="boolean" default-value="true"}[Whether to show the link indicator :icon{name="lucide:arrow-up-right"}] +:: diff --git a/content/2.components/2.docs/code-group.md b/content/2.components/2.docs/code-group.md index c8985bb9..4273a7ee 100644 --- a/content/2.components/2.docs/code-group.md +++ b/content/2.components/2.docs/code-group.md @@ -14,8 +14,10 @@ badges: target: _blank --- -::code-group - ::div{label="Preview" class="md:p-4"} +## Usage + +::stack + ::div{class="p-4"} ::code-group ```vue [app.vue] ``` + ```vue [pages/index.vue]