mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-25 04:18:36 +00:00
16 lines
388 B
TypeScript
16 lines
388 B
TypeScript
import { TextareaWrapper, Label, Wrapper } from './styles'
|
|||
|
|
|
||
|
|
import type { TextareaHTMLAttributes } from 'react'
|
||
|
|
|
||
|
|
type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
||
|
|
label?: string
|
||
|
|
}
|
||
|
|
|
||
|
|
export function Textarea({ label, ...rest }: TextareaProps) {
|
||
|
|
return (
|
||
|
|
<Wrapper>
|
||
|
|
{!!label && <Label>{label}</Label>}
|
||
|
|
<TextareaWrapper {...rest} />
|
||
|
|
</Wrapper>
|
||
|
|
)
|
||
|
|
}
|