14 lines
319 B
TypeScript
14 lines
319 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
interface LabelProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function Label({ children, className }: LabelProps) {
|
|
return (
|
|
<label className={`text-sm font-medium text-warm-700 dark:text-warm-300 ${className || ''}`}>
|
|
{children}
|
|
</label>
|
|
);
|
|
}
|