-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
107 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Component Code | ||
description: Extremely specific snippet to generate the code of a component in the Nuxt UI documentation (cc [@BenjaminCanac](https://x.com/benjamincanac)) | ||
keyword: cc | ||
code: | | ||
```mdc | ||
::component-code{pro} | ||
--- | ||
hide: | ||
- class | ||
props: | ||
class: '' | ||
--- | ||
:: | ||
``` | ||
tags: | ||
- documentation | ||
- nuxt | ||
- nuxt-ui | ||
- vue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Custom Icon Collection | ||
description: Create a @nuxt/icon custom collection | ||
keyword: cic | ||
code: | | ||
```ts | ||
icon: { | ||
customCollections: [ | ||
{ | ||
prefix: 'custom', | ||
dir: './app/assets/icons', | ||
}, | ||
], | ||
clientBundle: { | ||
scan: true, | ||
includeCustomCollections: true, | ||
} | ||
}, | ||
``` | ||
tags: | ||
- icon | ||
- nuxt-ui | ||
- nuxt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Complete SEO Setup | ||
description: Configure SEO meta tags and technical metadata with useHead and useSeoMeta | ||
keyword: seo | ||
code: | | ||
```ts | ||
const title = 'Your Page Title' | ||
const description = 'Your page description' | ||
const image = 'https://yoursite.com/og.png' | ||
const url = 'https://yoursite.com' | ||
useHead({ | ||
titleTemplate: '%s | Your Site Name', | ||
meta: [ | ||
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' }, | ||
{ name: 'charset', content: 'utf-8' }, | ||
{ name: 'color-scheme', content: 'light dark' }, | ||
], | ||
link: [ | ||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, | ||
{ rel: 'canonical', href: url }, | ||
], | ||
}) | ||
useSeoMeta({ | ||
title, | ||
description, | ||
ogTitle: title, | ||
ogDescription: description, | ||
ogImage: image, | ||
ogUrl: url, | ||
ogType: 'website', | ||
twitterCard: 'summary_large_image', | ||
twitterTitle: title, | ||
twitterDescription: description, | ||
twitterImage: image, | ||
}) | ||
``` | ||
tags: | ||
- seo | ||
- nuxt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: UI App Config | ||
description: Generate the UI App Config for Nuxt UI Pro | ||
keyword: ac | ||
code: | | ||
```ts | ||
export default defineAppConfig({ | ||
ui: { | ||
colors: { | ||
primary: 'green', | ||
neutral: 'neutral' | ||
} | ||
} | ||
}) | ||
``` | ||
tags: | ||
- nuxt-ui | ||
- nuxt |