mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-22 18:47:57 +01:00
17 lines
358 B
TypeScript
17 lines
358 B
TypeScript
import classNames from 'classnames';
|
|
import type { HTMLAttributes } from 'react';
|
|
|
|
export function Label({
|
|
htmlFor,
|
|
className,
|
|
...props
|
|
}: HTMLAttributes<HTMLLabelElement> & { htmlFor: string }) {
|
|
return (
|
|
<label
|
|
className={classNames(className, 'text-text-subtle whitespace-nowrap')}
|
|
htmlFor={htmlFor}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|