JSFiddle - React, Tailwind, and code Playground

by Posandu Mapa

HTML

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet"> 
	<style type="text/css">
	* , :before , :after {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		font-family: inherit;
	}
	body {
		font-family: "Roboto",sans-serif;
	}
	.sidebar {
		user-select: none;
		max-width: 20rem;
		border-right: 1px solid #eaeaea;
		height: 600px;
		overflow: hidden;
	}

	.new-btn {
		display: flex;
		align-items: center;
		margin-left: 8px;
		margin-top: 10px;
		margin-bottom: 10px;
		box-shadow: 0 1px 2px 0 rgba(60,64,67,0.302),0 1px 3px 1px rgba(60,64,67,0.149);
		border: none;
		background: white;
		padding: 5px 16px;
		border-radius: 100px;
		transition: all 0.2s ease;
		cursor: pointer;
	}
	.new-btn * {
		pointer-events: none;
	}
	.new-btn:hover {
		box-shadow: 0 1px 3px 0 rgba(60,64,67,0.302),0 4px 8px 3px rgba(60,64,67,0.149);
		background: #f8f9fa;
	}
	.new-btn:focus {
		background-color: #f8f9fa;
	}
	.new-btn:active {
		background-color: #e8f0fe;
	}
	.new-btn .icon {
		margin-right: 10px;
	}
	.new-btn .name {
		font-size: 14px;
		font-weight: 500;
		margin-right: 9px;
		color: #3c4043;
	}
	.items {
		display: block;
		max-height: 54vh;
		overflow: auto;
		margin-top: 10px;
	}

	.item {
		display: flex;
		align-items: center;
		padding: 6px 26px;
		background: white;
		border-radius: 0px 100px 100px 0px;
		cursor: pointer;
		transition: all 0.041s ease;
		justify-content: flex-start;
	}
	.item.active {
		background: #e8f0fe;
	}
	.item.active .name {
		color: #226ed4;
	}
	.item.active .icon svg {
		fill:  #226ed4;
	}
	.item .name {
		font-weight: 600;
		font-size: 13px;
		margin-left: 20px;
		color: #5f6368;
	}
	.item * {
		pointer-events: none;
	}
	.item .icon svg {
		fill:...