Atlassian Design System JS behaviour

Page Header

Page title, action buttons and tabs in one familiar row — the fixed frame every Jira and Confluence page opens with.

Documentation

Real scenarios

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

The frame every Jira page opens with

Breadcrumb, title, people and actions on one line, then the underline tabs — switch tabs to see the page summary change underneath.

Nabu UI redesign In progress

MR AK SM +2

Hero and compact heads

Confluence opens pages with the big display title and a quiet description; Jira lists squeeze the same frame into a single compact row.

CONFLUENCE · HERO

Design system guidelines

Everything the Nabu team agreed on tokens, spacing and voice — kept in one living page.

JIRA · COMPACT

Payment webhook

Done

NABU-241 · updated 2h ago · assigned to you

Important props

Important props
Prop Type Default What it does
breadcrumb slot null The trail above the title; links sit 4px apart.
actions slot null The button row at the end of the title line; the blue primary comes first.
tabs slot null The tabs under the title, with a 2px blue underline on the active one.
bottomBar slot null The bar at the header’s bottom; for metadata like the last update.

Snippet

<header class="atph">
    <nav class="atph-crumbs"><a href="#">Projects</a><span>/</span><b>Nabu</b></nav>
    <div class="atph-row">
        <h1>Nabu UI redesign</h1>
        <div class="atph-actions">
            <button class="atph-btn" data-kind="primary">Create</button>
            <button class="atph-btn">Invite teammates</button>
        </div>
    </div>
    <nav class="atph-tabs"><button data-current>Overview</button><button>Work items</button></nav>
</header>

<style>
.atph { display: grid; gap: 12px; padding-block: 16px; }
.atph-crumbs { font: 400 12px Inter, system-ui; color: #626F86; }
.atph-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.atph-row h1 { font: 500 24px/1.2 "Charlie Display", Inter, system-ui; color: #172B4D; }
.atph-actions { margin-inline-start: auto; display: flex; gap: 8px; }
.atph-btn { block-size: 32px; padding-inline: 12px; border-radius: 3px; border: none;
            background: #091E42; color: #FFFFFF; font: 500 14px Inter, system-ui; }
.atph-btn[data-kind='primary'] { background: #0C66E4; }
.atph-tabs { display: flex; gap: 4px; border-block-end: 2px solid #091E421F; }
.atph-tabs button { padding: 8px 12px; border: none; background: none; color: #44546F;
                    border-block-end: 2px solid transparent; margin-block-end: -2px; }
.atph-tabs button[data-current] { color: #0C66E4; border-block-end-color: #0C66E4; }
</style>
// app/Pages/Project.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 ProjectHeader from '@/components/ProjectHeader';

export default function Project() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <ProjectHeader />
      </main>
    </NabuXUIProvider>
  );
}
// ProjectHeader.jsx — the frame every Jira page opens with
import { useState } from 'react';
import '@nabuxai/ui-core/css';

const TABS = [
  { id: 'overview', label: 'Overview', summary: '3 in progress, 2 in review and 7 backlog issues in this sprint.' },
  { id: 'work', label: 'Work', summary: 'Sprint 24 board — advanced search enters review today.' },
  { id: 'plan', label: 'Plan', summary: 'Phase two closes on Oct 20; 84% of committed work is done.' },
];

export default function ProjectHeader() {
  const [tab, setTab] = useState('overview');
  const current = TABS.find((t) => t.id === tab);

  return (
    <>
      <style>{`
        .atph { display: grid; gap: 12px; padding-block: 16px; font-family: Inter, system-ui, sans-serif; }
        .atph-crumbs { font: 400 12px Inter, system-ui; color: #626F86; }
        .atph-crumbs a { color: #0C66E4; text-decoration: none; }
        .atph-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
        .atph-row h1 { margin: 0; font: 500 24px/1.2 'Charlie Display', Inter, system-ui; color: #172B4D; }
        .atph-actions { margin-inline-start: auto; display: flex; gap: 8px; }
        .atph-btn { block-size: 32px; padding-inline: 12px; border-radius: 3px; border: none; cursor: pointer;
                    background: #091E42; color: #fff; font: 500 14px Inter, system-ui; }
        .atph-btn[data-kind='primary'] { background: #0C66E4; }
        .atph-tabs { display: flex; gap: 4px; border-block-end: 2px solid #091E421F; }
        .atph-tabs button { padding: 8px 12px; border: none; background: none; cursor: pointer; color: #44546F;
                            border-block-end: 2px solid transparent; margin-block-end: -2px;
                            font: 500 14px Inter, system-ui; }
        .atph-tabs button[aria-current='page'] { color: #0C66E4; border-block-end-color: #0C66E4; }
        .atph-pane { margin: 0; font: 400 13px/1.6 Inter, system-ui; color: #44546F; }
      `}</style>
      <header className="atph">
        <nav className="atph-crumbs"><a href="#">Projects</a><span>/</span><b>Nabu</b></nav>
        <div className="atph-row">
          <h1>Nabu UI redesign</h1>
          <div className="atph-actions">
            <button type="button" className="atph-btn" data-kind="primary">Create</button>
            <button type="button" className="atph-btn">Invite teammates</button>
          </div>
        </div>
        {/* The 2px blue underline really switches the pane below. */}
        <nav className="atph-tabs" aria-label="Sections">
          {TABS.map((t) => (
            <button type="button" key={t.id} aria-current={tab === t.id ? 'page' : undefined}
              onClick={() => setTab(t.id)}>{t.label}</button>
          ))}
        </nav>
        <p className="atph-pane">{current.summary}</p>
      </header>
    </>
  );
}
<!-- ProjectHeader.vue — the frame every Jira page opens with -->
<script setup lang="ts">
import { computed, ref } from 'vue';
import '@nabuxai/ui-core/css';

const tabs = [
  { id: 'overview', label: 'Overview', summary: '3 in progress, 2 in review and 7 backlog issues in this sprint.' },
  { id: 'work', label: 'Work', summary: 'Sprint 24 board — advanced search enters review today.' },
  { id: 'plan', label: 'Plan', summary: 'Phase two closes on Oct 20; 84% of committed work is done.' },
];
const tab = ref('overview');
const current = computed(() => tabs.find((t) => t.id === tab.value)!);
</script>

<template>
  <header class="atph">
    <nav class="atph-crumbs"><a href="#">Projects</a><span>/</span><b>Nabu</b></nav>
    <div class="atph-row">
      <h1>Nabu UI redesign</h1>
      <div class="atph-actions">
        <button type="button" class="atph-btn" data-kind="primary">Create</button>
        <button type="button" class="atph-btn">Invite teammates</button>
      </div>
    </div>
    <!-- The 2px blue underline really switches the pane below. -->
    <nav class="atph-tabs" aria-label="Sections">
      <button v-for="t in tabs" :key="t.id" type="button"
        :aria-current="tab === t.id ? 'page' : undefined" @click="tab = t.id">{{ t.label }}</button>
    </nav>
    <p class="atph-pane">{{ current.summary }}</p>
  </header>
</template>

<style scoped>
.atph { display: grid; gap: 12px; padding-block: 16px; font-family: Inter, system-ui, sans-serif; }
.atph-crumbs { font: 400 12px Inter, system-ui; color: #626F86; }
.atph-crumbs a { color: #0C66E4; text-decoration: none; }
.atph-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.atph-row h1 { margin: 0; font: 500 24px/1.2 'Charlie Display', Inter, system-ui; color: #172B4D; }
.atph-actions { margin-inline-start: auto; display: flex; gap: 8px; }
.atph-btn { block-size: 32px; padding-inline: 12px; border-radius: 3px; border: none; cursor: pointer;
            background: #091E42; color: #fff; font: 500 14px Inter, system-ui; }
.atph-btn[data-kind='primary'] { background: #0C66E4; }
.atph-tabs { display: flex; gap: 4px; border-block-end: 2px solid #091E421F; }
.atph-tabs button { padding: 8px 12px; border: none; background: none; cursor: pointer; color: #44546F;
                    border-block-end: 2px solid transparent; margin-block-end: -2px;
                    font: 500 14px Inter, system-ui; }
.atph-tabs button[aria-current='page'] { color: #0C66E4; border-block-end-color: #0C66E4; }
.atph-pane { margin: 0; font: 400 13px/1.6 Inter, system-ui; color: #44546F; }
</style>
<!-- ProjectHeader.svelte — the frame every Jira page opens with -->
<script lang="ts">
  import '@nabuxai/ui-core/css';

  const tabs = [
    { id: 'overview', label: 'Overview', summary: '3 in progress, 2 in review and 7 backlog issues in this sprint.' },
    { id: 'work', label: 'Work', summary: 'Sprint 24 board — advanced search enters review today.' },
    { id: 'plan', label: 'Plan', summary: 'Phase two closes on Oct 20; 84% of committed work is done.' },
  ];
  let tab = $state('overview');
  const current = $derived(tabs.find((t) => t.id === tab)!);
</script>

<header class="atph">
  <nav class="atph-crumbs"><a href="#/projects">Projects</a><span>/</span><b>Nabu</b></nav>
  <div class="atph-row">
    <h1>Nabu UI redesign</h1>
    <div class="atph-actions">
      <button type="button" class="atph-btn" data-kind="primary">Create</button>
      <button type="button" class="atph-btn">Invite teammates</button>
    </div>
  </div>
  <!-- The 2px blue underline really switches the pane below. -->
  <nav class="atph-tabs" aria-label="Sections">
    {#each tabs as t (t.id)}
      <button type="button" aria-current={tab === t.id ? 'page' : undefined} onclick={() => (tab = t.id)}>
        {t.label}
      </button>
    {/each}
  </nav>
  <p class="atph-pane">{current.summary}</p>
</header>

<style>
.atph { display: grid; gap: 12px; padding-block: 16px; font-family: Inter, system-ui, sans-serif; }
.atph-crumbs { font: 400 12px Inter, system-ui; color: #626F86; }
.atph-crumbs a { color: #0C66E4; text-decoration: none; }
.atph-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.atph-row h1 { margin: 0; font: 500 24px/1.2 'Charlie Display', Inter, system-ui; color: #172B4D; }
.atph-actions { margin-inline-start: auto; display: flex; gap: 8px; }
.atph-btn { block-size: 32px; padding-inline: 12px; border-radius: 3px; border: none; cursor: pointer;
            background: #091E42; color: #fff; font: 500 14px Inter, system-ui; }
.atph-btn[data-kind='primary'] { background: #0C66E4; }
.atph-tabs { display: flex; gap: 4px; border-block-end: 2px solid #091E421F; }
.atph-tabs button { padding: 8px 12px; border: none; background: none; cursor: pointer; color: #44546F;
                    border-block-end: 2px solid transparent; margin-block-end: -2px;
                    font: 500 14px Inter, system-ui; }
.atph-tabs button[aria-current='page'] { color: #0C66E4; border-block-end-color: #0C66E4; }
.atph-pane { margin: 0; font: 400 13px/1.6 Inter, system-ui; color: #44546F; }
</style>