# New `RadioGroup` component to replace `RadioButton`  ### what's new - [x] Change the API - [x] More customizable options - [x] Indicator animation - [x] Dynamic width support(responsive) - [x] Storybook - [x] JSDoc
```ts import { observeResize } from "@affine/component"; useEffect(() => { const dispose = observeResize(element entry => { console.log(entry.contentRect); }); return () => dispose(); }, []); ```