Skip to content

Textarea

Textarea is part of the Forms and selection group. Multi-line text input for longer free-form content.

Terminal window
npx bambiui add textarea --framework react
Terminal window
npx bambiui add textarea --framework solid
Terminal window
npx bambiui add textarea --framework svelte
Terminal window
npx bambiui add textarea --framework vue
import { Textarea } from "@/components/ui/textarea";
export function Example() {
return <Textarea />;
}
import { Textarea } from "~/components/ui/textarea";
export function Example() {
return <Textarea />;
}
<script lang="ts">
import { Textarea } from "$lib/components/ui/textarea";
</script>
<Textarea />
<script setup lang="ts">
import { Textarea } from "@/components/ui/textarea";
</script>
<template>
<Textarea />
</template>
Textarea preview should be verified in the target framework after copying the component source. Interactive behavior comes from generated public artifacts, not docs-only mock behavior.

Use for descriptions, comments, notes, and messages.

Generated output uses serializable data-* attributes for state and styling. Controlled components fire bambi:<event-name> events and expect application state to update externally; uncontrolled components manage local source state and still fire events.

Use semantic labels, visible focus states, and keyboard interaction patterns appropriate for Textarea. Do not hide required instructions in transient UI. Verify focus movement and disabled states in the installed framework output.

Textarea

Customize tokens after installing and previewing the component. Relevant tokens include:

  • --bambi-background
  • --bambi-foreground
  • --bambi-border
  • --bambi-ring