import React from "react";
import RadioElement from "./RadioElement";
import RadioListElement from "./RadioListElement";
import Flex from "../../layout/Flex";
export const RadioContext = React.createContext({
    name: "",
    onChange: () => { },
});
const Radio = ({ currentValue, name, onChange, children, containerProps, }) => {
    return (React.createElement(Flex, { columnGap: "1.5rem", ...containerProps },
        React.createElement(RadioContext.Provider, { value: { currentValue, name, onChange } }, children)));
};
Radio.Element = RadioElement;
Radio.ListElement = RadioListElement;
export default Radio;
//# sourceMappingURL=index.js.map