How to override the styling of radio group in Base Web?

88 Views Asked by At

I want to adjust the gap between radio, so need to update styling of radio group. What is the right way to do so?

https://codesandbox.io/s/base-web-radiogroup-forked-ib0wqu?file=/src/example.js

1

There are 1 best solutions below

0
On

I should override on RadioGroupRoot instead of Root.

<RadioGroup
  overrides={{
    RadioGroupRoot: {
      style: {
        display: 'flex',
        alignItems: 'center',
        flexWrap: 'wrap',
        gap: '16px',
      }
    }
  >
  ...
</RadioGroup>
}}