homeman-deno/components/Label.tsx
2024-01-07 10:55:18 -06:00

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>
)
}