12 lines
240 B
TypeScript
12 lines
240 B
TypeScript
import { JSX } from 'preact'
|
|
|
|
export function Label(
|
|
{ children, className, ...props }: JSX.HTMLAttributes<HTMLLabelElement>,
|
|
) {
|
|
return (
|
|
<label {...props} class={`flex flex-col ${className}`} for='name'>
|
|
{children}
|
|
</label>
|
|
)
|
|
}
|