Skip to content

Commit

Permalink
feat(snippets): add Skeleton snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
selemondev committed Feb 3, 2024
1 parent 887803c commit e4c0758
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/snippets/imports.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,16 @@
"description": "https://park-ui.com/docs/tailwind/components/select"
},

"Skeleton": {
"prefix": ["park-skeleton"],
"body": [
"import { Circle, HStack, Stack } from 'styled-system/jsx'",
"import { Skeleton, type SkeletonProps } from '~/components/ui/skeleton'",
""
],
"description": "https://park-ui.com/docs/tailwind/components/skeleton"
},


"Slider": {
"prefix": ["park-i-slider", "park-slider"],
Expand Down
17 changes: 17 additions & 0 deletions src/snippets/usage.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,23 @@
"description": "https://park-ui.com/docs/tailwind/components/select"
},

"Skeleton": {
"prefix": ["park-x-skeleton", "park-ui-skeleton"],
"body": [
" <HStack width=\"full\" gap=\"4\">",
" <Skeleton borderRadius=\"full\">",
" <Circle size=\"20\" />",
" </Skeleton>",
" <Stack gap=\"3.5\" width=\"full\">",
" <Skeleton h=\"4\" />",
" <Skeleton h=\"4\" width=\"80%\" />",
" <Skeleton h=\"4\" width=\"60%\" />",
" </Stack>",
" </HStack>"
],
"description": "https://park-ui.com/docs/tailwind/components/skeleton"
},

"Slider": {
"prefix": ["park-x-slider", "park-ui-slider"],
"body": [
Expand Down

0 comments on commit e4c0758

Please sign in to comment.