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 { Label, TextArea } from "@/components/ui/heroui-text-area"
export default function Demo() {
return (
<div className="flex w-full items-center justify-center">
<div className="flex w-96 flex-col gap-4">
<div className="flex flex-col gap-2">
<Label htmlFor="textarea-rows-3">Short feedback</Label>
<TextArea
aria-label="Short feedback"
id="textarea-rows-3"
placeholder="This week's highlights..."
rows={3}
/>
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="textarea-rows-6">Detailed notes</Label>
<TextArea
aria-label="Detailed notes"
id="textarea-rows-6"
placeholder="Write out the full meeting notes..."
rows={6}
style={{ resize: "vertical" }}
/>
</div>
</div>
</div>
)
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...