示例工程 16-shadcn-ui-component-layer

16-shadcn-ui-component-layer/app/.tsc/src/components/ui/field.js

javascript · 0.5 KB

import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { cn } from "@/lib/utils";
export function Field({ label, description, className, children, }) {
    return (_jsxs("label", { className: cn("flex flex-col gap-1.5", className), children: [_jsx("span", { className: "text-xs font-medium text-text", children: label }), children, description ? (_jsx("span", { className: "text-xs text-muted", children: description })) : null] }));
}
//# sourceMappingURL=field.js.map