mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-22 02:16:39 +02:00
make textarea styles consistent with other inputs
This commit is contained in:
@@ -9,7 +9,19 @@ export interface TextareaProps extends MantineTextareaProps {
|
||||
}
|
||||
|
||||
export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||
({ children, classNames, maxWidth, style, width, ...props }: TextareaProps, ref) => {
|
||||
(
|
||||
{
|
||||
children,
|
||||
classNames,
|
||||
maxWidth,
|
||||
size = 'sm',
|
||||
style,
|
||||
variant = 'default',
|
||||
width,
|
||||
...props
|
||||
}: TextareaProps,
|
||||
ref,
|
||||
) => {
|
||||
return (
|
||||
<MantineTextarea
|
||||
classNames={{
|
||||
@@ -21,7 +33,10 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||
...classNames,
|
||||
}}
|
||||
ref={ref}
|
||||
size={size}
|
||||
spellCheck={false}
|
||||
style={{ maxWidth, width, ...style }}
|
||||
variant={variant}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
|
||||
Reference in New Issue
Block a user