mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
HealthLog — personal health-tracking PWA with weight, blood pressure, pulse, mood tracking, medication compliance, Withings integration, doctor report PDF export, and Dracula-themed UI.
27 lines
752 B
TypeScript
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 };
|