+
Radio
+
+ {
+ if (props.disabled && !['', 'hover'].includes(props.className)) {
+ return false;
+ }
+ return true;
+ }
+ )}
+ >
+ {props => (
+ {}} // eslint-disable-line no-empty-function
+ label="Radio"
+ />
+ )}
+
+
+
+
Radio Group
+
+
+ {props => (
+
+ {props.label}
+ {props.orientation === 'horizontal' ? (
+
+ {testGroup}
+ {props.error && hintText}
+
+ ) : (
+ <>
+ {testGroup}
+ {props.error && hintText}
+ >
+ )}
+
+ )}
+
+
+
Radio Group (grow)
+
+
+ {props => (
+
+ {props.label}
+ {testGroup}
+ {props.orientation === 'horizontal' && (
+
+ {testGroup} {props.error && hintText}
+
+ )}
+ {props.error && hintText}
+
+ )}
+
+
+
+
RadioGroup (wrapping)
+
+
+
+ Really long label. Really long label. Really long label. Really long label. Really long
+ label. Really long label.
+
+ {testGroup}
+
+
+
+ Really long label. Really long label. Really long label. Really long label. Really long
+ label. Really long label. Really long label. Really long label. Really long label. Really
+ long label. Really long label. Really long label. Really long label. Really long label.
+ Really long label. Really long label. Really long label. Really long label. Really long
+ label. Really long label. Really long label. Really long label. Really long label. Really
+ long label. Really long label. Really long label.
+
+ {testGroup}
+
+
+
+);
+
+export const InverseRadioStates = () => (
+