Skip to content

Instantly share code, notes, and snippets.

@juanbrusco
Created June 16, 2023 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanbrusco/669041f34289c47f5157c463fb35b746 to your computer and use it in GitHub Desktop.
Save juanbrusco/669041f34289c47f5157c463fb35b746 to your computer and use it in GitHub Desktop.
Button with icon and notification bubble
<button
style={{ paddingInline: 5, position: "relative" }}
title="button"
onClick={(e) => {
console.log(e);
}}
>
<span className="circleRed"></span>
<Icon icon="message"/>
</button>
.circleRed {
position: absolute;
right: 5px;
width: 10px;
height: 10px;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment