Skip to content

SectionLabel

Stable

A tiny capital-letter label that names a group in a list, with room for a small action.

Also known as overline, eyebrow, subheader, list subheader

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

Label only

Today

A plain group name above a list.

When to use it

A tiny capital-letter label that names a group of items, such as Today or Pinned. It stays quiet so the items stand out, and it has room at the end for a count or one small action.

Made of: Label · Action at the end

Use it for

  • Grouping chats by date in a side list.
  • Naming a section in a tray or a settings panel.
  • A group name with a count or a Clear button at the end.

Not for

  • A page or card title.
  • A status on a single item: use Badge.

Do and avoid

Upcoming trips

Do. Two short words name the group, with one quiet action.

Here are all the trips you booked with us over the past year

Avoid. A long sentence in small capitals is tiring to read.

Do

  • Use short words like "Pinned" or "Last 7 days". It shows in capitals by itself, so write it normally.
  • Put it right above the group it names.
  • Use the end of the row for one small control or a count.
  • Make it a heading only when it is a real section title.

Avoid

  • Do not use it as a page or card title. Use the large headings.
  • Do not type labels in capitals. The style does it.
  • Do not put long sentences in it.
  • Do not put several actions at the end of the row.

On a phone

  • The label and the action sit on one row. The label can wrap if the action takes the space.
  • The label text is 12px on touch screens.
  • If the action is a button, it keeps its size on a touch screen and has a 44px tap area, so the row does not get taller. A small link needs the tap class to get the same tap area.

Build your next AI screen with Tattva.

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

Get started