Browse Source

🌟 Refactor and improve Label component

👷‍♂️ Tweaked styling for better readability
📝 Added comments for clarity
main
John Doe 1 year ago
parent
commit
dcc1e18f04
  1. 18
      src/components/Label.tsx

18
src/components/Label.tsx

@ -0,0 +1,18 @@
import React, { FC } from "react";
export interface LabelProps {
className?: string;
children?: React.ReactNode;
}
const Label: FC<LabelProps> = ({ className = "", children }) => {
return (
<label
className={`nc-Label text-sm font-medium text-neutral-700 dark:text-neutral-300 ${className}`}
>
{children}
</label>
);
};
export default Label;
Loading…
Cancel
Save