aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/forms/radio-group.stories.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/molecules/forms/radio-group.stories.tsx')
-rw-r--r--src/components/molecules/forms/radio-group.stories.tsx52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/components/molecules/forms/radio-group.stories.tsx b/src/components/molecules/forms/radio-group.stories.tsx
index 3c01af5..ad1bd6d 100644
--- a/src/components/molecules/forms/radio-group.stories.tsx
+++ b/src/components/molecules/forms/radio-group.stories.tsx
@@ -13,6 +13,19 @@ export default {
labelSize: 'small',
},
argTypes: {
+ bodyClassName: {
+ control: {
+ type: 'text',
+ },
+ description: 'Set additional classnames to the fieldset body wrapper.',
+ table: {
+ category: 'Styles',
+ },
+ type: {
+ name: 'string',
+ required: false,
+ },
+ },
className: {
control: {
type: 'text',
@@ -26,6 +39,19 @@ export default {
required: false,
},
},
+ groupClassName: {
+ control: {
+ type: 'text',
+ },
+ description: 'Set additional classnames to the radio group wrapper.',
+ table: {
+ category: 'Styles',
+ },
+ type: {
+ name: 'string',
+ required: false,
+ },
+ },
initialChoice: {
control: {
type: 'text',
@@ -131,6 +157,19 @@ export default {
required: false,
},
},
+ onClick: {
+ control: {
+ type: null,
+ },
+ description: 'A callback function to handle click on a choice.',
+ table: {
+ category: 'Events',
+ },
+ type: {
+ name: 'function',
+ required: false,
+ },
+ },
optionClassName: {
control: {
type: 'text',
@@ -152,6 +191,19 @@ export default {
value: {},
},
},
+ Tooltip: {
+ control: {
+ type: null,
+ },
+ description: 'Add an optional tooltip.',
+ table: {
+ category: 'Options',
+ },
+ type: {
+ name: 'function',
+ required: false,
+ },
+ },
},
} as ComponentMeta<typeof RadioGroup>;