Skip to content

Commit

Permalink
Merge pull request #44 from frailbongat/feature/scrollarea-snippet
Browse files Browse the repository at this point in the history
feat: add snippet for scroll-area component
  • Loading branch information
selemondev authored Nov 29, 2024
2 parents f4c12d0 + 2d85b28 commit 7a967f6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/snippets/imports-code-snippets-next.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,17 @@
],
"description": "https://next.shadcn-svelte.com/docs/components/range-calendar.html"
},
"Scroll Area": {
"prefix": [
"shadcn-ix-scroll-area",
"cni-x-scroll-area"
],
"body": [
"import { ScrollArea } from \"$$lib/components/ui/scroll-area/index.js\"",
""
],
"description": "https://next.shadcn-svelte.com/docs/components/scroll-area.html"
},
"Select": {
"prefix": [
"cni-x-select"
Expand Down
11 changes: 11 additions & 0 deletions src/snippets/imports-code-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,17 @@
],
"description": "https://shadcn-svelte.com/docs/components/range-calendar.html"
},
"Scroll Area": {
"prefix": [
"shadcn-i-scroll-area",
"cni-scroll-area"
],
"body": [
"import { ScrollArea } from \"$$lib/components/ui/scroll-area\"",
""
],
"description": "https://shadcn-svelte.com/docs/components/scroll-area.html"
},
"Select": {
"prefix": [
"cni-select"
Expand Down
20 changes: 20 additions & 0 deletions src/snippets/usage-code-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,26 @@
],
"description": "https://shadcn-svelte.com/docs/components/range-calendar.html"
},
"Scroll Area": {
"prefix": [
"cnx-scroll-area",
"shadcn-x-scroll-area"
],
"body": [
"<ScrollArea class=\"h-72 w-48 rounded-md border\">",
" <div class=\"p-4\">",
" <h4 class=\"mb-4 text-sm font-medium leading-none\">Tags</h4>",
" {#each Array.from({ length: 50 }) as _, i (i)}",
" <div class=\"text-sm\">",
" v1.2.0-beta.{50 - i}",
" </div>",
" <div class=\"my-2 h-px bg-border\" role=\"separator\"></div>",
" {/each}",
" </div>",
"</ScrollArea>"
],
"description": "https://next.shadcn-svelte.com/docs/components/scroll-area.html"
},
"Select": {
"prefix": [
"cnx-select",
Expand Down

0 comments on commit 7a967f6

Please sign in to comment.