97a3c84625
Reescribe todos los componentes UI para usar Mantine v9 en lugar de shadcn/Tailwind. Elimina cn(), CVA, components.json, theme_provider custom y globals.css con Tailwind. Añade 25+ componentes nuevos (AppShell, AuthForm, DatePickerInput, Dropzone, etc.) y MantineProvider como wrapper estándar del sistema de temas. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
675 B
TypeScript
27 lines
675 B
TypeScript
import * as React from 'react'
|
|
import { Textarea as MantineTextarea } from '@mantine/core'
|
|
|
|
interface TextareaProps extends Omit<React.ComponentProps<typeof MantineTextarea>, 'autosize'> {
|
|
autoResize?: boolean
|
|
}
|
|
|
|
const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
({ className, autoResize = false, ...props }, ref) => {
|
|
return (
|
|
<MantineTextarea
|
|
ref={ref}
|
|
data-slot="textarea"
|
|
autosize={autoResize}
|
|
minRows={autoResize ? 2 : undefined}
|
|
size="sm"
|
|
className={className}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
)
|
|
Textarea.displayName = 'Textarea'
|
|
|
|
export { Textarea }
|
|
export type { TextareaProps }
|