import * as React from "react";
import { StoryFn, Meta } from "@storybook/react";
import { RadioInput } from "./";
import { InputStoryWrapper } from "../../decorators/inputStoryWrapper";
import { RadioInputProps } from "./RadioInput";
export default {
title: "Forms/RadioInput",
decorators: [Story => {Story()}],
component: RadioInput,
argTypes: {
inputLabel: {
control: {
type: "text"
}
},
hintContent: {
control: {
type: "text"
}
},
errors: {
control: { disable: true }
}
},
args: {
appearance: "standard",
inputLabel: "Default Input Label"
}
} as Meta;
const Template: StoryFn = args => {
const [checkedValue, setCheckedValue] = React.useState();
const changeHandler = (event: React.ChangeEvent) => {
setCheckedValue(event.target.value);
};
return (
);
};
export const Default = {
render: Template
};