@fremtind/jkl-radio-button-react
Version:
Jøkul react radio button components
22 lines (21 loc) • 559 B
JavaScript
import React, { createContext, useContext } from "react";
const radioGroupContext = createContext({
name: void 0,
value: void 0,
onChange: () => {
return;
},
inline: false,
density: void 0,
invalid: false
});
const useRadioGroupContext = () => useContext(radioGroupContext);
const RadioGroupContextProvider = ({
state,
children
}) => /* @__PURE__ */ React.createElement(radioGroupContext.Provider, { value: state }, children);
export {
RadioGroupContextProvider,
useRadioGroupContext
};
//# sourceMappingURL=radioGroupContext.js.map