From 7e422dfdceb50f58d04501fc34a6fef914f1418e Mon Sep 17 00:00:00 2001 From: Manuel Date: Tue, 13 Feb 2024 10:10:49 +0100 Subject: [PATCH] BREAKING CHANGE: remove default radio box orientation --- src/components/form-field/radio-box/radio-box.stories.tsx | 7 ++++++- src/components/form-field/radio-box/radio-box.tsx | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/form-field/radio-box/radio-box.stories.tsx b/src/components/form-field/radio-box/radio-box.stories.tsx index ce4203fe..d631dca8 100644 --- a/src/components/form-field/radio-box/radio-box.stories.tsx +++ b/src/components/form-field/radio-box/radio-box.stories.tsx @@ -18,7 +18,12 @@ const RadioBoxWithHooks = () => { return ( - + Recommended diff --git a/src/components/form-field/radio-box/radio-box.tsx b/src/components/form-field/radio-box/radio-box.tsx index ac81b133..dcb753bf 100644 --- a/src/components/form-field/radio-box/radio-box.tsx +++ b/src/components/form-field/radio-box/radio-box.tsx @@ -7,11 +7,12 @@ export interface RadioBoxProps { children: React.ReactNode; value: string; onChange: (value: string) => void; + className?: string; } -export const RadioBox = ({ id, value, children, onChange }: RadioBoxProps) => { +export const RadioBox = ({ id, value, children, onChange, className }: RadioBoxProps) => { return ( - + {children} );