Spaces:
Running on Zero
Running on Zero
| import * as React from 'react'; | |
| import { cn } from '../../lib/utils'; | |
| const Textarea = React.forwardRef<HTMLTextAreaElement, React.ComponentProps<'textarea'>>( | |
| ({ className, ...props }, ref) => { | |
| return ( | |
| <textarea | |
| className={cn( | |
| 'flex min-h-[124px] w-full rounded-[1.5rem] border border-line bg-paper px-4 py-3 text-sm text-ink shadow-[inset_0_1px_0_color-mix(in_oklab,var(--color-paper)_40%,white)] transition placeholder:text-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-clay/20 disabled:cursor-not-allowed disabled:opacity-50', | |
| className, | |
| )} | |
| ref={ref} | |
| {...props} | |
| /> | |
| ); | |
| }, | |
| ); | |
| Textarea.displayName = 'Textarea'; | |
| export { Textarea }; | |