Files
HealthLog/src/components/ui/label.tsx
T
Marc-André Bombeck 38309932f3 Initial release v1.0.0
HealthLog — personal health-tracking PWA with weight, blood pressure,
pulse, mood tracking, medication compliance, Withings integration,
doctor report PDF export, and Dracula-themed UI.
2026-03-10 20:14:33 +01:00

27 lines
752 B
TypeScript

"use client";
import * as React from "react";
import { Label as LabelPrimitive } from "radix-ui";
import { cn } from "@/lib/utils";
function Label({
className,
noColon = false,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root> & { noColon?: boolean }) {
return (
<LabelPrimitive.Root
data-slot="label"
data-no-colon={noColon}
className={cn(
"inline-flex items-center pl-1 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50 after:content-[':'] data-[no-colon=true]:after:content-none",
className,
)}
{...props}
/>
);
}
export { Label };