diff --git a/assets/js/src/common/form/radio/_stories/radio.tsx b/assets/js/src/common/form/radio/_stories/radio.tsx new file mode 100644 index 0000000000..30bf5a5640 --- /dev/null +++ b/assets/js/src/common/form/radio/_stories/radio.tsx @@ -0,0 +1,76 @@ +import React from 'react'; +import { action } from '@storybook/addon-actions'; +import Radio from '../radio'; +import RadioGroup from '../group'; +import Heading from '../../../typography/heading/heading'; + +export default { + title: 'Form', + component: Radio, +}; + +const options = [ + { value: 1, label: 'Group option 1' }, + { value: 2, label: 'Group option 2' }, +]; + +export const Radios = () => ( + <> + Inline individual radios +
+ + Option 1 + + + Option 2 + +
+
+ + Full-width individual radios +
+ + Option 1 + + + Option 2 + +
+
+ + Inline group radios + +
+ + Full-width group radios + + +);