import { jsx as _jsx } from "react/jsx-runtime";
import React from "react";
import RadioButton from "./index";
export default {
    title: "Controls/Radio button"
};
export const Basic = () => {
    const [checked, setChecked] = React.useState(false);
    return (_jsx(RadioButton, { value: "value-1", title: "Value 1", onClick: (v) => {
            console.log(`Selected value: ${v}`);
            setChecked(true);
        }, checked: checked }));
};
export const Selected = () => (_jsx(RadioButton, { value: "value-x", title: "Value X", onClick: (v) => console.log(`Selected value: ${v}`), checked: true }));
//# sourceMappingURL=index.stories.js.map