A multi-line text input. Use it directly for simple cases, or compose with TextArea.Root and TextArea.Input for custom layouts.
Import all parts of the component and piece them together
A multi-line text input. Use it directly for simple cases, or compose with TextArea.Root and TextArea.Input for custom layouts.
React"use client" import TextArea from "@radui/ui/TextArea" const TextAreaExample = () => { return ( <div className="w-full max-w-[400px] space-y-4"> <TextArea id="message-textarea" placeholder="Type your message here." /> <TextArea placeholder="Disabled textarea" disabled /> </div> ) } export default TextAreaExample
Import all parts of the component and piece them together
Reactimport TextArea from "@radui/ui/TextArea" export default () => { return ( <TextArea.Root> <TextArea.Input placeholder="..." /> </TextArea.Root> ) }