Files
zooqueen 6ac2a59a06 style: paint the app on black
The dark page is 0%. Depth is the ramp above it: surfaces at 6-7%, menu
hover at 16%, edges at 18%, all without hue. Fields, dialogs, sheets and
toasts sit on the surface step so they read against the page.
2026-08-14 16:04:04 -07:00

28 lines
862 B
TypeScript

import * as React from 'react';
import { cn } from '../lib/utils';
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement>;
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
'flex h-20 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
className,
{
'ring-2 !ring-red-500 transition-all': props['aria-invalid'],
},
)}
ref={ref}
{...props}
/>
);
},
);
Textarea.displayName = 'Textarea';
export { Textarea };