Skip to content

Commit

Permalink
feat(snippets): add Sonner snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
selemondev committed Feb 3, 2024
1 parent 1a4a27a commit 5711055
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/snippets/imports.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,14 @@
"body": ["import { Slider } from \"@/components/ui/slider\"", "import { cn } from \"@/lib/utils\"", ""],
"description": "https://shadcn-vue.com/docs/components/slider.html"
},

"Sonner": {
"prefix": ["shadcn-i-sonner", "cni-sonner"],
"body": [
"import { Toaster } from \"@/components/ui/sonner\""
],
"description": "https://www.shadcn-vue.com/docs/components/sonner.html"
},

"Switch": {
"prefix": ["shadcn-i-switch", "cni-switch"],
Expand Down
8 changes: 8 additions & 0 deletions src/snippets/usage.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,14 @@
],
"description": "https://shadcn-vue.com/docs/components/slider.html"
},

"Sonner": {
"prefix": ["shadcn-x-sonner", "cnx-sonner"],
"body": [
"<Toaster />"
],
"description": "https://shadcn-vue.com/docs/components/sonner.html"
},

"Switch": {
"prefix": ["shadcn-x-switch", "cnx-switch"],
Expand Down

0 comments on commit 5711055

Please sign in to comment.