JSFiddle - React, Tailwind, and code Playground

by jimousse

HTML

<div class="container">
	<button class="btn">
		<div class="wrapper">
			<div class="content red">Ho</div>
			<div class="content green">Ho</div>
			<div class="content blue">Ho</div>
		</div>
	</button>
</div>

CSS

.container {
	height: 300px;
	display: flex;
	flex-direction: column;
	border: 1px solid black;
}

.btn {
	flex-grow: 1;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 1px solid yellow;
}

.wrapper{
  display: flex;
	flex-direction: column;
  height: 100%;
  align-items: stretch;
}

.content {
  flex: 1;
  color: white;
}

.break {
	display
}

.red { background: red; }
.green { background: green; }
.blue { background: blue; }