mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Tweak workspace settings dialog and Markdown editor
This commit is contained in:
16
src-web/components/core/Label.tsx
Normal file
16
src-web/components/core/Label.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user