<Badge value={'20'}>
<Button type="primary" size={'small'} onClick={() => {}}>
icon
</Button>
</Badge>
<div style={{ display: 'inline-block', width: '20px' }} />
<Badge value={'20'} isDot={true}>
<Button type="primary" size={'small'} onClick={() => {}}>
icon
</Button>
</Badge>