daily-toolset
Version:
A lightweight, versatile collection of TypeScript utility functions for everyday development needs. Simplify and streamline your Node.js, React, and Next.js projects with a powerful suite of well-organized helpers for strings, arrays, dates, objects, and
11 lines (10 loc) • 627 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.RadioButton = RadioButton;
const jsx_runtime_1 = require("react/jsx-runtime");
const radio_group_1 = require("../../components/ui/radio-group");
const react_1 = require("react");
function RadioButton({ isDisabled, value, label }) {
const id = (0, react_1.useId)();
return ((0, jsx_runtime_1.jsxs)("div", { className: "explita-radio-group-button", children: [(0, jsx_runtime_1.jsx)(radio_group_1.RadioGroupItem, { value: value, id: id, disabled: isDisabled }), (0, jsx_runtime_1.jsx)("label", { htmlFor: id, children: label })] }));
}
;