UNPKG

gvf3n4ygn-test

Version:
16 lines 1.18 kB
{ "name": "textarea", "dependencies": [], "registryDependencies": [], "files": [ { "name": "Textarea.vue", "content": "<script setup lang=\"ts\">\n\nconst props = defineProps<{\n modelValue?: string | number;\n}>();\n\nconst model = defineModel<string | number>();\n</script>\n\n<template>\n <textarea\n v-model=\"model\"\n class=\"sigma-ui-textarea\"\n :class=\"[$attrs.class]\"\n autocomplete=\"off\"\n />\n</template>\n\n<style>\n.sigma-ui-textarea {\n display: flex;\n min-height: 5rem;\n width: 100%;\n border-radius: var(--radius-md);\n border: 1px solid hsl(var(--input));\n background-color: hsl(var(--background));\n padding: 0.5rem 0.75rem;\n font-size: 0.875rem;\n}\n\n.sigma-ui-textarea::placeholder {\n color: hsl(var(--muted-foreground));\n}\n\n.sigma-ui-textarea:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));\n}\n\n.sigma-ui-textarea:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n</style>\n" }, { "name": "index.ts", "content": "export { default as Textarea } from './Textarea.vue';\n" } ], "type": "components:ui" }