import React from 'react';
import { Meta, Story } from '@storybook/react';
import { AtomRadio, IRadioProps } from 'native/atoms/Radio';
import { action } from '@storybook/addon-actions';

const meta: Meta = {
  title: 'React Native/atoms/Radio',
  component: AtomRadio,
  argTypes: {},
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateRadio: Story<IRadioProps> = (props) => {
  return (
    <AtomRadio {...props} />
  )
}

export const Radio = TemplateRadio.bind({});

Radio.args = {
  value: "TestVal",
  label: "Radio Label",
  onChange: action('Radio Changed')
};