shadcn-vue/apps/www/src/content/docs/components/textarea.md
zernonia 73c561d698
chore: bump Radix Vue v1 (#139)
* refactor: apply all v1 changes

* chore: bump radix-vue version

* chore: remove WIP

* chore: update component preview

* chore: fix old pnpm lock
2023-10-24 20:51:00 +08:00

1.0 KiB

title description
Textarea Displays a form textarea or a component that looks like a textarea.

Installation

npx shadcn-vue@latest add textarea

<template #Manual>

Install the following dependency:

npm install radix-vue

Copy and paste the following code into your project

<<< @/lib/registry/default/ui/textarea/Textarea.vue

Usage

<script setup lang="ts">
import { Textarea } from '@/components/ui/textarea'
</script>

<template>
  <Textarea />
</template>

Examples

Default

Disabled

With Label

With Text

With Button

Form