mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-18 18:18:35 +00:00
17 lines
388 B
TypeScript
17 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>
|
|
)
|
|
}
|