Control panels · component · 5K

Labels panel

A Labels control panel: the seven Finder label colours, each with an editable name. onChange hands you all seven names to pass to FinderLabelTag and finderLabelName().

Each field is named "Label 1 name (orange)" and so on, since the swatch itself is not text; override with labels.field and labels.colors. A name left empty returns to its default when the field loses focus. Swatches keep their colour in forced colours.

Install

pnpm dlx shadcn@latest add @s7ui/labels-panel

Example

This example also uses @s7ui/file-label @s7ui/window.

In use

  • Essential
  • Urgent
  • In Progress
  • Shared
  • Personal
  • Project 1
  • Project 2

Info

Files:
components/retro/labels-panel.tsx
Uses:
@s7ui/theme, @s7ui/control-panel, @s7ui/file-label, @s7ui/bitmap, @s7ui/input
Packages:
—