mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-25 20:34:48 +00:00
refactor: api routes
This commit is contained in:
42 files changed
+622
-506
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user