Atlassian Design System JS behaviour

Empty State

Friendly line illustration, heading, description and a single CTA — turning an empty Jira page into an invitation to start.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

The invitation, drawn in lines

An empty Files tab with its one CTA — press it and the list seeds itself with the first three uploads of the team; the quiet link below puts the emptiness back.

Nabu platform  /  Files

Compact cousins

Inside panels the same recipe shrinks: smaller art, one line of copy and one link — no results and no access.

No results for “growth”

Try a shorter word, or clear two of the four filters.

empty state · search
This project is private

Ask its admin for access and the board appears right here.

empty state · permissions

Important props

Important props
Prop Type Default What it does
header string '' The Charlie heading at weight 500 and 24px.
description string '' One sentence; never more than two lines.
primaryAction slot null A single blue CTA; relegate any second action to a text link.
imageUrl string null The line illustration with 1.5px strokes and soft corners.

Snippet

<section class="ates">
    <svg viewBox="0 0 160 120" aria-hidden="true">
        <rect x="28" y="18" width="104" height="84" rx="8" fill="#FFFFFF" stroke="#8590A2" stroke-width="1.5"/>
        <path d="M48 44h64M48 60h44" stroke="#DFE1E6" stroke-width="1.5" stroke-linecap="round"/>
    </svg>
    <h3>Nothing lives here yet</h3>
    <p>Create the project's first issue and the board comes alive.</p>
    <button data-primary>Create issue</button>
</section>

<style>
.ates { display: grid; justify-items: center; gap: 8px; padding: 40px 24px;
        text-align: center; }
.ates svg { inline-size: 160px; }
.ates h3 { margin: 0; font: 500 20px/1.3 "Charlie Display", Inter, system-ui; color: #172B4D; }
.ates p { margin: 0; max-inline-size: 42ch; font: 400 14px/1.6 Inter, system-ui; color: #626F86; }
.ates [data-primary] { margin-block-start: 8px; block-size: 32px; padding-inline: 12px;
                       border: none; border-radius: 3px; background: #0C66E4; color: #fff; }
</style>
// app/Pages/Files.jsx — Inertia page; renders the React snippet
// below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import FilesEmptyState from '@/components/FilesEmptyState';

export default function Files() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <FilesEmptyState />
      </main>
    </NabuXUIProvider>
  );
}
// FilesEmptyState.jsx — the illustrated invitation that seeds the file list
import { useState } from 'react';
import '@nabuxai/ui-core/css';

const FILES = [
  { name: 'user-behaviour-analysis.pdf', meta: '2.4 MB · yesterday', tile: '#B40000', tag: 'PDF' },
  { name: 'istanbul-palette.fig', meta: '812 KB · yesterday', tile: '#6E5DC6', tag: 'FIG' },
  { name: 'sprint-24-metrics.csv', meta: '44 KB · 2 days ago', tile: '#1F845A', tag: 'CSV' },
];

export default function FilesEmptyState() {
  const [filled, setFilled] = useState(false);

  return (
    <>
      <style>{`
        .ates-stage { max-inline-size: 24rem; border: 1px solid #DFE1E6; border-radius: 6px; background: #fff;
                      padding: 1rem; font-family: Inter, system-ui, sans-serif; }
        .ates { display: grid; justify-items: center; gap: .55rem; padding: 1.5rem 1.25rem 2rem; text-align: center; }
        .ates svg.art { inline-size: 9.5rem; }
        .ates h4 { margin: .35rem 0 0; font: 500 1.25rem/1.3 'Charlie Display', Inter, system-ui; color: #172B4D; }
        .ates p { margin: 0; max-inline-size: 40ch; font: 400 .84rem/1.6 Inter, system-ui; color: #626F86; }
        .ates-cta { margin-block-start: .75rem; block-size: 2rem; padding-inline: .9rem; border: none;
                    border-radius: 3px; cursor: pointer; background: #0C66E4; color: #fff;
                    font: 500 .8rem/1 Inter, system-ui; }
        .ates-quiet { margin-block-start: .5rem; border: none; background: none; cursor: pointer;
                      font: 500 .78rem Inter, system-ui; color: #0C66E4; }
        .ates-file { display: flex; align-items: center; gap: .65rem; padding: .55rem .5rem; border-radius: 4px; }
        .ates-file:hover { background: #F1F2F4; }
        .ates-file i { flex: none; display: grid; place-items: center; inline-size: 1.9rem; aspect-ratio: 1;
                       border-radius: 4px; color: #fff; font: 600 .68rem/1 Inter, system-ui; font-style: normal; }
        .ates-file b { display: block; font: 500 .8rem/1.4 Inter, system-ui; color: #172B4D; }
        .ates-file small { font: 400 .7rem/1.4 Inter, system-ui; color: #626F86; }
      `}</style>
      <div className="ates-stage">
        {!filled ? (
          <section className="ates">
            {/* Friendly 1.5px line illustration — the Jira signature. */}
            <svg className="art" viewBox="0 0 160 120" fill="none" aria-hidden="true">
              <rect x="34" y="16" width="92" height="76" rx="8" stroke="#8590A2" strokeWidth="1.5" fill="#fff" />
              <path d="M46 34h30" stroke="#8590A2" strokeWidth="1.5" strokeLinecap="round" />
              <circle cx="118" cy="34" r="10" stroke="#388BFF" strokeWidth="1.5" />
              <path d="M113.5 34l3 3 5.5-6" stroke="#388BFF" strokeWidth="1.5"
                strokeLinecap="round" strokeLinejoin="round" />
              <rect x="46" y="50" width="68" height="9" rx="4.5" fill="#DFE1E6" />
              <rect x="46" y="66" width="50" height="9" rx="4.5" fill="#DFE1E6" />
            </svg>
            <h4>Nothing lives here yet</h4>
            <p>Files your team uploads to this project land here — the first one starts the pile.</p>
            {/* A single blue CTA; the second action stays a text link. */}
            <button type="button" className="ates-cta" onClick={() => setFilled(true)}>Upload files</button>
          </section>
        ) : (
          <div>
            {FILES.map((f) => (
              <div className="ates-file" key={f.name}>
                <i style={{ background: f.tile }} aria-hidden="true">{f.tag}</i>
                <span><b>{f.name}</b><small>{f.meta}</small></span>
              </div>
            ))}
            <button type="button" className="ates-quiet" onClick={() => setFilled(false)}>Reset the list</button>
          </div>
        )}
      </div>
    </>
  );
}
<!-- FilesEmptyState.vue — the illustrated invitation that seeds the file list -->
<script setup lang="ts">
import { ref } from 'vue';
import '@nabuxai/ui-core/css';

const files = [
  { name: 'user-behaviour-analysis.pdf', meta: '2.4 MB · yesterday', tile: '#B40000', tag: 'PDF' },
  { name: 'istanbul-palette.fig', meta: '812 KB · yesterday', tile: '#6E5DC6', tag: 'FIG' },
  { name: 'sprint-24-metrics.csv', meta: '44 KB · 2 days ago', tile: '#1F845A', tag: 'CSV' },
];
const filled = ref(false);
</script>

<template>
  <div class="ates-stage">
    <section v-if="!filled" class="ates">
      <!-- Friendly 1.5px line illustration — the Jira signature. -->
      <svg class="art" viewBox="0 0 160 120" fill="none" aria-hidden="true">
        <rect x="34" y="16" width="92" height="76" rx="8" stroke="#8590A2" stroke-width="1.5" fill="#fff" />
        <path d="M46 34h30" stroke="#8590A2" stroke-width="1.5" stroke-linecap="round" />
        <circle cx="118" cy="34" r="10" stroke="#388BFF" stroke-width="1.5" />
        <path d="M113.5 34l3 3 5.5-6" stroke="#388BFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
        <rect x="46" y="50" width="68" height="9" rx="4.5" fill="#DFE1E6" />
        <rect x="46" y="66" width="50" height="9" rx="4.5" fill="#DFE1E6" />
      </svg>
      <h4>Nothing lives here yet</h4>
      <p>Files your team uploads to this project land here — the first one starts the pile.</p>
      <!-- A single blue CTA; the second action stays a text link. -->
      <button type="button" class="ates-cta" @click="filled = true">Upload files</button>
    </section>
    <div v-else>
      <div v-for="f in files" :key="f.name" class="ates-file">
        <i :style="{ background: f.tile }" aria-hidden="true">{{ f.tag }}</i>
        <span><b>{{ f.name }}</b><small>{{ f.meta }}</small></span>
      </div>
      <button type="button" class="ates-quiet" @click="filled = false">Reset the list</button>
    </div>
  </div>
</template>

<style scoped>
.ates-stage { max-inline-size: 24rem; border: 1px solid #DFE1E6; border-radius: 6px; background: #fff;
              padding: 1rem; font-family: Inter, system-ui, sans-serif; }
.ates { display: grid; justify-items: center; gap: .55rem; padding: 1.5rem 1.25rem 2rem; text-align: center; }
.ates svg.art { inline-size: 9.5rem; }
.ates h4 { margin: .35rem 0 0; font: 500 1.25rem/1.3 'Charlie Display', Inter, system-ui; color: #172B4D; }
.ates p { margin: 0; max-inline-size: 40ch; font: 400 .84rem/1.6 Inter, system-ui; color: #626F86; }
.ates-cta { margin-block-start: .75rem; block-size: 2rem; padding-inline: .9rem; border: none;
            border-radius: 3px; cursor: pointer; background: #0C66E4; color: #fff;
            font: 500 .8rem/1 Inter, system-ui; }
.ates-quiet { margin-block-start: .5rem; border: none; background: none; cursor: pointer;
              font: 500 .78rem Inter, system-ui; color: #0C66E4; }
.ates-file { display: flex; align-items: center; gap: .65rem; padding: .55rem .5rem; border-radius: 4px; }
.ates-file:hover { background: #F1F2F4; }
.ates-file i { flex: none; display: grid; place-items: center; inline-size: 1.9rem; aspect-ratio: 1;
               border-radius: 4px; color: #fff; font: 600 .68rem/1 Inter, system-ui; font-style: normal; }
.ates-file b { display: block; font: 500 .8rem/1.4 Inter, system-ui; color: #172B4D; }
.ates-file small { font: 400 .7rem/1.4 Inter, system-ui; color: #626F86; }
</style>
<!-- FilesEmptyState.svelte — the illustrated invitation that seeds the file list -->
<script lang="ts">
  import '@nabuxai/ui-core/css';

  const files = [
    { name: 'user-behaviour-analysis.pdf', meta: '2.4 MB · yesterday', tile: '#B40000', tag: 'PDF' },
    { name: 'istanbul-palette.fig', meta: '812 KB · yesterday', tile: '#6E5DC6', tag: 'FIG' },
    { name: 'sprint-24-metrics.csv', meta: '44 KB · 2 days ago', tile: '#1F845A', tag: 'CSV' },
  ];
  let filled = $state(false);
</script>

<div class="ates-stage">
  {#if !filled}
    <section class="ates">
      <!-- Friendly 1.5px line illustration — the Jira signature. -->
      <svg class="art" viewBox="0 0 160 120" fill="none" aria-hidden="true">
        <rect x="34" y="16" width="92" height="76" rx="8" stroke="#8590A2" stroke-width="1.5" fill="#fff" />
        <path d="M46 34h30" stroke="#8590A2" stroke-width="1.5" stroke-linecap="round" />
        <circle cx="118" cy="34" r="10" stroke="#388BFF" stroke-width="1.5" />
        <path d="M113.5 34l3 3 5.5-6" stroke="#388BFF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
        <rect x="46" y="50" width="68" height="9" rx="4.5" fill="#DFE1E6" />
        <rect x="46" y="66" width="50" height="9" rx="4.5" fill="#DFE1E6" />
      </svg>
      <h4>Nothing lives here yet</h4>
      <p>Files your team uploads to this project land here — the first one starts the pile.</p>
      <!-- A single blue CTA; the second action stays a text link. -->
      <button type="button" class="ates-cta" onclick={() => (filled = true)}>Upload files</button>
    </section>
  {:else}
    <div>
      {#each files as f (f.name)}
        <div class="ates-file">
          <i style:background={f.tile} aria-hidden="true">{f.tag}</i>
          <span><b>{f.name}</b><small>{f.meta}</small></span>
        </div>
      {/each}
      <button type="button" class="ates-quiet" onclick={() => (filled = false)}>Reset the list</button>
    </div>
  {/if}
</div>

<style>
.ates-stage { max-inline-size: 24rem; border: 1px solid #DFE1E6; border-radius: 6px; background: #fff;
              padding: 1rem; font-family: Inter, system-ui, sans-serif; }
.ates { display: grid; justify-items: center; gap: .55rem; padding: 1.5rem 1.25rem 2rem; text-align: center; }
.ates svg.art { inline-size: 9.5rem; }
.ates h4 { margin: .35rem 0 0; font: 500 1.25rem/1.3 'Charlie Display', Inter, system-ui; color: #172B4D; }
.ates p { margin: 0; max-inline-size: 40ch; font: 400 .84rem/1.6 Inter, system-ui; color: #626F86; }
.ates-cta { margin-block-start: .75rem; block-size: 2rem; padding-inline: .9rem; border: none;
            border-radius: 3px; cursor: pointer; background: #0C66E4; color: #fff;
            font: 500 .8rem/1 Inter, system-ui; }
.ates-quiet { margin-block-start: .5rem; border: none; background: none; cursor: pointer;
              font: 500 .78rem Inter, system-ui; color: #0C66E4; }
.ates-file { display: flex; align-items: center; gap: .65rem; padding: .55rem .5rem; border-radius: 4px; }
.ates-file:hover { background: #F1F2F4; }
.ates-file i { flex: none; display: grid; place-items: center; inline-size: 1.9rem; aspect-ratio: 1;
               border-radius: 4px; color: #fff; font: 600 .68rem/1 Inter, system-ui; font-style: normal; }
.ates-file b { display: block; font: 500 .8rem/1.4 Inter, system-ui; color: #172B4D; }
.ates-file small { font: 400 .7rem/1.4 Inter, system-ui; color: #626F86; }
</style>