import {FormRadioField} from "ui";
import {ArgsTable, Meta, Story} from "@storybook/addon-docs";
<Meta title="Components/Inputs/FormRadioField/old" component={FormRadioField}/>
export const Template = (args) => <FormRadioField {...args} />;
# FormRadioField
This component renders an FormRadioField.
## Props
<ArgsTable story="Default"/>
## Examples
<Story
name="Default"
args={{
id: "example",
label: "Label",
labelIcon: "home",
action: () => {
},
value: "Medium",
radioGroup: ["Small", "Medium", "Big"],
required: true,
disabled: false,
direction: "vertical",
caption: "",
}}
>
{Template.bind({})}
</Story>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter