UNPKG

@fremtind/jkl-radio-button-react

Version:
22 lines (21 loc) 559 B
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