JSFiddle - React, Tailwind, and code Playground

by yaero

HTML

<div class="hide">
	<a class="fab secondary-fab fab-radial-layout one">A</a>
	<a class="fab secondary-fab fab-radial-layout two">B</a>
	<a class="fab secondary-fab fab-radial-layout three">C</a>
</div>

<div class="">
	<a class="fab secondary-fab fab-radial-layout">A</a>
	<a class="fab secondary-fab fab-radial-layout">B</a>
<!-- 	<a class="fab secondary-fab fab-radial-layout">C</a> -->
</div>

SCSS

.hide {
	display: none;
}

.secondary-fab {
	z-index: 22;
	font-size: 20px;
	height: 40px;
	width: 40px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #6ac6f7;
}

.fab {
	border: none;
	color: #fff;
	box-shadow: 3px 3px 5px rgba(0,0,0,.3);
	cursor: pointer;
	position: fixed;
	&:focus {
		outline: none;
	}
	
	p {
		margin: 0;
		position: relative;
		bottom: 2px;
	}
}

.fab-radial-layout {
	&.one {
		bottom: 40px;
		right: 135px;
	}
	&.two {
		bottom: 110px;
		right: 96px;
	}
	&.three {
		bottom: 135px;
		right: 25px;
	}
}

.fab-radial-layout {
	&:nth-child(1) {
		bottom: 135px;
		right: 25px;
	}
	
	&:nth-child(2) {
		bottom: 110px;
		right: 96px;
	}
	
	&:nth-child(3) {
		bottom: 40px;
		right: 135px;
	}
}