Skip to content

Tray

Stable

A soft panel with a short list of things to look at, and an optional message box under it.

Also known as sidebar list, navigation list, panel list

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Rows that need attention

Needs you

4 running →

A row marked as needing attention gets an amber dot. Use it only when a person has to act.

When to use it

A soft panel that gathers the few things a person should look at now. The message box can sit underneath, so the list and the input share one edge.

Made of: Panel · Heading · Heading link · Rows · Footer (message box)

Use it for

  • A short list of tasks that need a person, on a landing screen.
  • A few suggested starting points with a message box under them.
  • A small group of open items that all fit without scrolling.

Not for

  • A long list that has to scroll.
  • Past chats in the side panel: use ConversationList.
  • Progress of a running task, with finished work folded away: use Checklist.

Do and avoid

Needs a look

Do. A few items to look at now, in one soft panel.

Everything

Avoid. A long list buries the few things that matter today.

Do

  • Keep the list to a few rows so it can be read at a glance.
  • Put the message box in the footer so it lines up with the list.
  • Mark a row as needing attention only when a person has to act.
  • Give the panel a heading so screen readers can name it.

Avoid

  • Do not use it for long lists. Use a full list page instead.
  • Do not add a border or a second panel inside it.
  • Only put list rows inside it. Other content will not display correctly.
  • Do not mark every row. When everything is amber, nothing stands out.

On a phone

  • Fills the width of its container, and the rows inside it keep their size and have a tap area at least 44px tall on a touch screen.
  • Each row stacks its title above its detail on a phone, and the detail wraps instead of being cut off.
  • A row's trailing text, which shows only on hover on a desktop, is always visible on a touch screen.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started