BadgeDot
A red dot saying something new is waiting behind an element. Use `withBorder` on icons and avatars so it stays visible.
Health
Source
Storybook
Playground
No Example
Accessibility
not-compliant
Platform
Universal
Accessibility issues
The dot is visual only, so the element it sits on must say what is new in its accessibility label
- Overview
- Props
tip
This component is universal, its usage is the same in
murray and murray/mobile.BadgeDot props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| corner | { top: number; end: number; }undefined | Pins the dot to the top end corner of its parent, offset by these values in px. Without it, the dot sits in the layout flow, for example at the end of a list item. | ||
| withBorder | booleanundefined | false | Adds a white ring so the dot stays visible on top of an icon, an avatar or a button. |