Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
    • AlertNext
    • BadgeDot
    • EmptyPlaceholder
    • Loader
    • Toast
  • Data display
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Feedback & status
  • BadgeDot

BadgeDot

A red dot saying something new is waiting behind an element. Use `withBorder` on icons and avatars so it stays visible.

Health
Component health
Source
View on Github
Storybook
View in 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

On top of an element​

Use withBorder on icons, avatars and buttons so the white ring keeps the dot visible, and corner to pin it to the top end corner of its parent.

In a row​

Without corner, the dot sits in the layout flow, for example at the end of a list item.

Help

tip
This component is universal, its usage is the same in murray and murray/mobile.

BadgeDot props

NameTypeDefault ValueDescriptionUsage count
corner{ top: number; end: number; }undefinedPins 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.
withBorderbooleanundefinedfalseAdds a white ring so the dot stays visible on top of an icon, an avatar or a button.
Edit this page
Previous
AlertNext
Next
EmptyPlaceholder
  • On top of an element
  • In a row