JSFiddle - React, Tailwind, and code Playground

by mnk

HTML

<div class="header">
  <div class="icon back"></div>
  <h3>Test</h3>
  <div class="actions">
    <div class="action">
      <div class="icon"></div>
      settings
    </div>
    <div class="action">
      <div class="icon"></div>
      patate
    </div>
  </div>
</div>

CSS

.header {
  display: flex;
  height: 70px;
  background-color: tomato;
  flex-direction: row;
  align-items: center;
}
.header h3 {
  flex-grow: 1;
}
.icon {
  width: 20px;
  height: 20px;
  background-color: blue;
}
.actions {
  display: flex;
  flex-direction: row;
  background-color: yellow;
  align-self: stretch;
}
.action {
  display: flex;
  flex-direction: row;
  align-self: center;
}