shadcn-vue/apps/www/static/registry/styles/default/separator.json
2023-09-06 09:57:37 +08:00

21 lines
730 B
JSON

{
"name": "separator",
"dependencies": [
"radix-vue"
],
"registryDependencies": [
"utils"
],
"files": [
{
"name": "Separator.vue",
"content": "<script setup lang=\"ts\">\nimport { Separator, type SeparatorProps } from 'radix-vue'\nimport { cn } from '@/lib/utils'\n\nconst props = defineProps<SeparatorProps & { class?: string }>()\n</script>\n\n<template>\n <Separator\n :class=\"[\n cn('shrink-0 bg-secondary', props.class),\n props.orientation === 'vertical' ? 'w-px h-full' : 'h-px w-full',\n ]\"\n />\n</template>\n"
},
{
"name": "index.ts",
"content": "export { default as Separator } from './Separator.vue'\n"
}
],
"type": "components:ui"
}