From 34ba928a763633f20b10d3378023d9d4faae07fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Mon, 18 May 2020 16:09:49 +0200 Subject: [PATCH] Add story with radio examples [MAILPOET-2773] --- .../src/common/form/radio/_stories/radio.tsx | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 assets/js/src/common/form/radio/_stories/radio.tsx 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 + + +);