Components
Multi-line text input for longer free-form content, with primary and secondary variants, configurable rows, and full-width layout. Thin re-export of the real @heroui/react TextArea plus @heroui/styles.
npx shadcn@latest add https://21st.dev/r/hero_ui/heroui-text-areaLoading preview...
import { Description, TextArea } from "@/components/ui/heroui-text-area"
import React from "react"
export default function Demo() {
const [value, setValue] = React.useState("")
return (
<div className="flex w-full items-center justify-center">
<div className="flex w-96 flex-col gap-2">
<TextArea
aria-describedby="textarea-controlled-description"
aria-label="Announcement"
placeholder="Compose an announcement..."
value={value}
onChange={(event) => setValue(event.target.value)}
/>
<Description id="textarea-controlled-description">
Characters: {value.length} / 280
</Description>
</div>
</div>
)
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...