Skip to content

Empty Table State

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

Tables & Data GridsHTMLCSSany framework
TransactionAmountDate

No transactions yet

Your activity will appear here

Copy into your project

HTML
<div class="nuda-tbl-empty">
  <table class="nuda-tbl-empty__table">
    <thead>
      <tr>
        <th class="nuda-tbl-empty__th">Transaction</th>
        <th class="nuda-tbl-empty__th">Amount</th>
        <th class="nuda-tbl-empty__th">Date</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="nuda-tbl-empty__placeholder" colspan="3">
          <div class="nuda-tbl-empty__body">
            <div class="nuda-tbl-empty__icon">
              <svg width="32" height="32" viewBox="0 0 32 32" fill="none">
                <rect x="4" y="8" width="24" height="18" rx="3" stroke="rgba(255,255,255,.15)" stroke-width="1.5" fill="none"/>
                <line x1="4" y1="13" x2="28" y2="13" stroke="rgba(255,255,255,.15)" stroke-width="1.5"/>
                <line x1="10" y1="18" x2="22" y2="18" stroke="rgba(255,255,255,.1)" stroke-width="1.5" stroke-linecap="round"/>
                <line x1="12" y1="22" x2="20" y2="22" stroke="rgba(255,255,255,.08)" stroke-width="1.5" stroke-linecap="round"/>
              </svg>
            </div>
            <p class="nuda-tbl-empty__title">No transactions yet</p>
            <p class="nuda-tbl-empty__sub">Your activity will appear here</p>
            <button class="nuda-tbl-empty__cta">+ New transaction</button>
          </div>
        </td>
      </tr>
    </tbody>
  </table>
</div>
CSS
.nuda-tbl-empty {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  background: #141414;
}

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

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

.nuda-tbl-empty__placeholder {
  padding: 0;
  text-align: center;
}

.nuda-tbl-empty__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  gap: .35rem;
}

.nuda-tbl-empty__icon {
  opacity: .6;
  margin-bottom: .25rem;
}

.nuda-tbl-empty__title {
  color: #cfcfcf;
  font-size: .82rem;
  font-weight: 600;
  margin: 0;
}

.nuda-tbl-empty__sub {
  color: #555;
  font-size: .72rem;
  margin: 0;
}

.nuda-tbl-empty__cta {
  margin-top: .5rem;
  padding: 5px 14px;
  border-radius: 7px;
  background: #e4ff54;
  border: none;
  color: #141414;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .12s;
}

.nuda-tbl-empty__cta:hover {
  opacity: .85;
}

How to use Empty Table State

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