aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/forms/radio-group.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/molecules/forms/radio-group.tsx')
-rw-r--r--src/components/molecules/forms/radio-group.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/molecules/forms/radio-group.tsx b/src/components/molecules/forms/radio-group.tsx
index 134829f..3930908 100644
--- a/src/components/molecules/forms/radio-group.tsx
+++ b/src/components/molecules/forms/radio-group.tsx
@@ -25,7 +25,12 @@ export type RadioGroupOption = Pick<
export type RadioGroupProps = Pick<
FieldsetProps,
- 'bodyClassName' | 'className' | 'legend' | 'legendClassName' | 'Tooltip'
+ | 'bodyClassName'
+ | 'buttonClassName'
+ | 'className'
+ | 'legend'
+ | 'legendClassName'
+ | 'Tooltip'
> &
Pick<LabelledBooleanFieldProps, 'labelPosition' | 'labelSize'> & {
/**
@@ -78,6 +83,7 @@ const RadioGroup: FC<RadioGroupProps> = ({
kind = 'regular',
labelPosition,
labelSize,
+ legendClassName,
legendPosition = 'inline',
onChange,
optionClassName = '',
@@ -134,6 +140,7 @@ const RadioGroup: FC<RadioGroupProps> = ({
return (
<Fieldset
className={`${styles.wrapper} ${styles[alignmentModifier]} ${styles[toggleModifier]} ${className}`}
+ legendClassName={`${styles.legend} ${legendClassName}`}
legendPosition={legendPosition}
role="radiogroup"
{...props}