Skip to content

Mini Grid with Toolbar

A copy-paste tables & data grids component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Tables & Data GridsHTMLCSSany framework
Users
NameEmailRole
Felix R.felix@r.ioAdmin
Mia L.mia@l.coEditor

Copy into your project

HTML
<div class="nuda-tbl-grid">
  <div class="nuda-tbl-grid__toolbar">
    <span class="nuda-tbl-grid__title">Users</span>
    <div class="nuda-tbl-grid__actions">
      <button class="nuda-tbl-grid__btn">Filter</button>
      <button class="nuda-tbl-grid__btn nuda-tbl-grid__btn--primary">+ Add</button>
    </div>
  </div>
  <table class="nuda-tbl-grid__table">
    <thead>
      <tr>
        <th class="nuda-tbl-grid__th">Name</th>
        <th class="nuda-tbl-grid__th">Email</th>
        <th class="nuda-tbl-grid__th">Role</th>
      </tr>
    </thead>
    <tbody>
      <tr class="nuda-tbl-grid__row">
        <td class="nuda-tbl-grid__td">Felix R.</td>
        <td class="nuda-tbl-grid__td nuda-tbl-grid__td--muted">felix@r.io</td>
        <td class="nuda-tbl-grid__td">Admin</td>
      </tr>
      <tr class="nuda-tbl-grid__row">
        <td class="nuda-tbl-grid__td">Mia L.</td>
        <td class="nuda-tbl-grid__td nuda-tbl-grid__td--muted">mia@l.co</td>
        <td class="nuda-tbl-grid__td">Editor</td>
      </tr>
    </tbody>
  </table>
</div>
CSS
.nuda-tbl-grid {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  background: #141414;
}

.nuda-tbl-grid__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nuda-tbl-grid__title {
  color: #fafafa;
  font-size: .78rem;
  font-weight: 600;
}

.nuda-tbl-grid__actions {
  display: flex;
  gap: .4rem;
}

.nuda-tbl-grid__btn {
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: #cfcfcf;
  font-size: .7rem;
  cursor: pointer;
  transition: background .12s,border-color .12s;
}

.nuda-tbl-grid__btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
}

.nuda-tbl-grid__btn--primary {
  background: #e4ff54;
  border-color: #e4ff54;
  color: #141414;
  font-weight: 600;
}

.nuda-tbl-grid__btn--primary:hover {
  background: #d4ef44;
  border-color: #d4ef44;
}

.nuda-tbl-grid__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.nuda-tbl-grid__th {
  padding: .45rem .75rem;
  text-align: left;
  color: #777;
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nuda-tbl-grid__td {
  padding: .42rem .75rem;
  color: #cfcfcf;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nuda-tbl-grid__row:last-child .nuda-tbl-grid__td {
  border-bottom: none;
}

.nuda-tbl-grid__td--muted {
  color: #555;
  font-size: .72rem;
}

How to use Mini Grid with Toolbar

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More tables & data grids components

← Browse all NudaUI components