homeman-deno/components/Label.tsx

12 lines
229 B
TypeScript
Raw Normal View History

2024-01-07 10:55:18 -06:00
import { JSX } from 'preact'
export function Label(
{ children, className, ...props }: JSX.HTMLAttributes<HTMLLabelElement>,
) {
return (
2024-01-09 23:06:44 -06:00
<label {...props} class={`flex flex-col ${className}`}>
2024-01-07 10:55:18 -06:00
{children}
</label>
)
}