Components
Loading preview...
Here is Textarea component
@ShadcnStudio
npx shadcn@latest add https://21st.dev/r/ShadcnStudio/text-areaimport { useId } from 'react'
import { Label } from '@/components/ui/label'
import { Textarea } from '@/components/ui/textarea'
const TextareaWithHintTextDemo = () => {
const id = useId()
return (
<div className='w-full max-w-xs space-y-2'>
<div className='flex items-center justify-between gap-1'>
<Label htmlFor={id}>Input with hint text</Label>
<span className='text-muted-foreground text-xs'>Optional field</span>
</div>
<Textarea placeholder='Type your feedback here' id={id} />
</div>
)
}
export default TextareaWithHintTextDemo