Atlassian Design System JS behaviour

Lozenge

The small half-rounded status chip with subtle or bold color — the reason a Jira 'In Progress' label is recognizable at first glance.

Documentation

Real scenarios

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

The chip that betrays the sprint

A real work-item list — click any status chip and it walks the six official appearances, exactly the cycle a Jira drag would set.

Hovering shows the little drag hint; the flip animation plays on every change.

The whole family, subtle and bold

Subtle is a pale surface with a dark tint of the same hue; bold fills solid for when the status must shout. Long labels clamp at 200px.

Backlog backlog
Backlog backlog · bold
In progress inprogress
In progress inprogress · bold
In review review
In review review · bold
Done done
Done done · bold
Moved moved
Moved moved · bold
Removed removed
Removed removed · bold
A very long label that clamps inside two hundred pixels so the row never breaks maxWidth · 200px

Important props

Important props
Prop Type Default What it does
appearance string 'default' default · successful · removed · inprogress · moved · new.
isBold boolean false Subtle is a pale surface with dark text; bold is a solid fill with white text.
maxWidth length '200px' A label longer than 200px clamps to an ellipsis.

Snippet

<span class="atlz" data-tone="inprogress">In progress</span>
<span class="atlz" data-tone="successful">Done</span>
<span class="atlz" data-tone="removed" data-bold>Removed</span>

<style>
.atlz { display: inline-block; padding: 2px 8px; border-radius: 3px;
        font: 700 11px/1.6 Inter, system-ui; letter-spacing: .2px; }
.atlz[data-tone='inprogress'] { background: #E9F2FF; color: #0055CC; }
.atlz[data-tone='successful'] { background: #DCFFF1; color: #1F845A; }
.atlz[data-bold] { background: #0C66E4; color: #FFFFFF; }
.atlz[data-tone='removed'][data-bold] { background: #B40000; }
</style>
// app/Pages/Board.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 StatusLozenges from '@/components/StatusLozenges';

export default function Board() {
  return (
    <NabuXUIProvider locale="en" linkComponent={Link}>
      <main className="nx-page">
        <StatusLozenges />
      </main>
    </NabuXUIProvider>
  );
}
// StatusLozenges.jsx — the Atlassian lozenge: click a chip to cycle its appearance
import { useState } from 'react';
import '@nabuxai/ui-core/css';

const TONES = ['backlog', 'inprogress', 'review', 'done', 'moved', 'removed'];
const LABELS = {
  backlog: 'Backlog', inprogress: 'In progress', review: 'In review',
  done: 'Done', moved: 'Moved', removed: 'Removed',
};
const ISSUES = [
  { key: 'NABU-241', name: 'Payment webhook retries', tone: 'review' },
  { key: 'NABU-247', name: 'Advanced search tokens', tone: 'inprogress' },
  { key: 'NABU-253', name: 'Istanbul launch checklist', tone: 'backlog' },
];

export default function StatusLozenges() {
  const [tones, setTones] = useState(Object.fromEntries(ISSUES.map((i) => [i.key, i.tone])));
  const cycle = (key) =>
    setTones((t) => ({ ...t, [key]: TONES[(TONES.indexOf(t[key]) + 1) % TONES.length] }));

  return (
    <>
      <style>{`
        .atlz-board { max-inline-size: 26rem; border: 1px solid #DFE1E6; border-radius: 6px;
                      overflow: hidden; background: #fff; font-family: Inter, system-ui, sans-serif; }
        .atlz-row { display: flex; align-items: center; gap: .75rem; inline-size: 100%; padding: .7rem .9rem;
                    border: none; background: none; text-align: start; cursor: pointer; font: inherit; }
        .atlz-row + .atlz-row { border-block-start: 1px solid #DFE1E6; }
        .atlz-row:hover { background: #F1F2F4; }
        .atlz-key { font: 600 .75rem Inter, system-ui; color: #0C66E4; }
        .atlz-name { flex: 1; font: 400 .85rem/1.4 Inter, system-ui; color: #172B4D; }
        /* Six subtle appearances; add data-bold for the solid family. */
        .atlz-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; white-space: nowrap;
                     font: 700 .7rem/1.6 Inter, system-ui; letter-spacing: .2px;
                     max-inline-size: 200px; overflow: hidden; text-overflow: ellipsis; }
        .atlz-chip[data-tone='backlog'] { background: #F1F2F4; color: #44546F; }
        .atlz-chip[data-tone='inprogress'] { background: #E9F2FF; color: #0055CC; }
        .atlz-chip[data-tone='review'] { background: #FFF7D6; color: #A54800; }
        .atlz-chip[data-tone='done'] { background: #DCFFF1; color: #1F845A; }
        .atlz-chip[data-tone='moved'] { background: #EAE6FF; color: #5E4DB2; }
        .atlz-chip[data-tone='removed'] { background: #FFEDEB; color: #AE2A19; }
      `}</style>
      <div className="atlz-board">
        {ISSUES.map((issue) => (
          <button type="button" className="atlz-row" key={issue.key} onClick={() => cycle(issue.key)}>
            <span className="atlz-key">{issue.key}</span>
            <span className="atlz-name">{issue.name}</span>
            {/* Click cycles through the six official appearances. */}
            <span className="atlz-chip" data-tone={tones[issue.key]}>{LABELS[tones[issue.key]]}</span>
          </button>
        ))}
      </div>
    </>
  );
}
<!-- StatusLozenges.vue — the Atlassian lozenge: click a chip to cycle its appearance -->
<script setup lang="ts">
import { reactive } from 'vue';
import '@nabuxai/ui-core/css';

const tones = ['backlog', 'inprogress', 'review', 'done', 'moved', 'removed'] as const;
const labels = {
  backlog: 'Backlog', inprogress: 'In progress', review: 'In review',
  done: 'Done', moved: 'Moved', removed: 'Removed',
};
const issues = [
  { key: 'NABU-241', name: 'Payment webhook retries', tone: 'review' },
  { key: 'NABU-247', name: 'Advanced search tokens', tone: 'inprogress' },
  { key: 'NABU-253', name: 'Istanbul launch checklist', tone: 'backlog' },
];
const state = reactive(Object.fromEntries(issues.map((i) => [i.key, i.tone])));
function cycle(key: string) {
  const at = tones.indexOf(state[key]);
  state[key] = tones[(at + 1) % tones.length];
}
</script>

<template>
  <div class="atlz-board">
    <button v-for="issue in issues" :key="issue.key" type="button" class="atlz-row" @click="cycle(issue.key)">
      <span class="atlz-key">{{ issue.key }}</span>
      <span class="atlz-name">{{ issue.name }}</span>
      <!-- Click cycles through the six official appearances. -->
      <span class="atlz-chip" :data-tone="state[issue.key]">{{ labels[state[issue.key]] }}</span>
    </button>
  </div>
</template>

<style scoped>
.atlz-board { max-inline-size: 26rem; border: 1px solid #DFE1E6; border-radius: 6px;
              overflow: hidden; background: #fff; font-family: Inter, system-ui, sans-serif; }
.atlz-row { display: flex; align-items: center; gap: .75rem; inline-size: 100%; padding: .7rem .9rem;
            border: none; background: none; text-align: start; cursor: pointer; font: inherit; }
.atlz-row + .atlz-row { border-block-start: 1px solid #DFE1E6; }
.atlz-row:hover { background: #F1F2F4; }
.atlz-key { font: 600 .75rem Inter, system-ui; color: #0C66E4; }
.atlz-name { flex: 1; font: 400 .85rem/1.4 Inter, system-ui; color: #172B4D; }
/* Six subtle appearances; add data-bold for the solid family. */
.atlz-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; white-space: nowrap;
             font: 700 .7rem/1.6 Inter, system-ui; letter-spacing: .2px;
             max-inline-size: 200px; overflow: hidden; text-overflow: ellipsis; }
.atlz-chip[data-tone='backlog'] { background: #F1F2F4; color: #44546F; }
.atlz-chip[data-tone='inprogress'] { background: #E9F2FF; color: #0055CC; }
.atlz-chip[data-tone='review'] { background: #FFF7D6; color: #A54800; }
.atlz-chip[data-tone='done'] { background: #DCFFF1; color: #1F845A; }
.atlz-chip[data-tone='moved'] { background: #EAE6FF; color: #5E4DB2; }
.atlz-chip[data-tone='removed'] { background: #FFEDEB; color: #AE2A19; }
</style>
<!-- StatusLozenges.svelte — the Atlassian lozenge: click a chip to cycle its appearance -->
<script lang="ts">
  import '@nabuxai/ui-core/css';

  const tones = ['backlog', 'inprogress', 'review', 'done', 'moved', 'removed'] as const;
  const labels = {
    backlog: 'Backlog', inprogress: 'In progress', review: 'In review',
    done: 'Done', moved: 'Moved', removed: 'Removed',
  };
  const issues = [
    { key: 'NABU-241', name: 'Payment webhook retries', tone: 'review' },
    { key: 'NABU-247', name: 'Advanced search tokens', tone: 'inprogress' },
    { key: 'NABU-253', name: 'Istanbul launch checklist', tone: 'backlog' },
  ];
  let state = $state(Object.fromEntries(issues.map((i) => [i.key, i.tone])));
  function cycle(key: string) {
    const at = tones.indexOf(state[key]);
    state[key] = tones[(at + 1) % tones.length];
  }
</script>

<div class="atlz-board">
  {#each issues as issue (issue.key)}
    <button type="button" class="atlz-row" onclick={() => cycle(issue.key)}>
      <span class="atlz-key">{issue.key}</span>
      <span class="atlz-name">{issue.name}</span>
      <!-- Click cycles through the six official appearances. -->
      <span class="atlz-chip" data-tone={state[issue.key]}>{labels[state[issue.key]]}</span>
    </button>
  {/each}
</div>

<style>
.atlz-board { max-inline-size: 26rem; border: 1px solid #DFE1E6; border-radius: 6px;
              overflow: hidden; background: #fff; font-family: Inter, system-ui, sans-serif; }
.atlz-row { display: flex; align-items: center; gap: .75rem; inline-size: 100%; padding: .7rem .9rem;
            border: none; background: none; text-align: start; cursor: pointer; font: inherit; }
.atlz-row + .atlz-row { border-block-start: 1px solid #DFE1E6; }
.atlz-row:hover { background: #F1F2F4; }
.atlz-key { font: 600 .75rem Inter, system-ui; color: #0C66E4; }
.atlz-name { flex: 1; font: 400 .85rem/1.4 Inter, system-ui; color: #172B4D; }
/* Six subtle appearances; add data-bold for the solid family. */
.atlz-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; white-space: nowrap;
             font: 700 .7rem/1.6 Inter, system-ui; letter-spacing: .2px;
             max-inline-size: 200px; overflow: hidden; text-overflow: ellipsis; }
.atlz-chip[data-tone='backlog'] { background: #F1F2F4; color: #44546F; }
.atlz-chip[data-tone='inprogress'] { background: #E9F2FF; color: #0055CC; }
.atlz-chip[data-tone='review'] { background: #FFF7D6; color: #A54800; }
.atlz-chip[data-tone='done'] { background: #DCFFF1; color: #1F845A; }
.atlz-chip[data-tone='moved'] { background: #EAE6FF; color: #5E4DB2; }
.atlz-chip[data-tone='removed'] { background: #FFEDEB; color: #AE2A19; }
</style>