Textarea
Textarea is part of the Forms and selection group. Multi-line text input for longer free-form content.
Installation
Section titled “Installation”npx bambiui add textarea --framework reactnpx bambiui add textarea --framework solidnpx bambiui add textarea --framework sveltenpx bambiui add textarea --framework vueimport { 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>Preview
Section titled “Preview”
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.
Behavior
Section titled “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.
Accessibility
Section titled “Accessibility”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.
Exports
Section titled “Exports”TextareaTokens
Section titled “Tokens”Customize tokens after installing and previewing the component. Relevant tokens include:
--bambi-background--bambi-foreground--bambi-border--bambi-ring