Files
yaak-mountain-loop/src-web/components/core/Label.tsx
2025-01-08 08:54:40 -08:00

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