@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
8 lines (7 loc) • 438 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, forwardRef } from "react";
export const context = createContext({});
const RadioGroupBase = ({ value, onChange, ...props }, ref) => {
return (_jsx(context.Provider, { value: { value: value, onChange: onChange }, children: _jsx("div", { ...props, ref: ref, role: "group", children: props.children }) }));
};
export const RadioGroup = forwardRef(RadioGroupBase);