Properties, Board, ScrollArea, ColorPicker, ResizablePanelGroup and NavigationMenu
A record, a board, panes, a site menu
- A record's editable properties are
Properties. Rows of a label and a control. In a record's side panel, status and assignee take the bordered chip,SelectTrigger shape="chip"andPersonSelect(the bordered chip in a row by itself), so they read as controls at rest. Only a dense list meant to read quiet takes the ghost chip,variant="ghost"(several valuesMultiSelect shape="chip" variant="ghost", a dateDatePickerTrigger asChildonButton variant="subtle", a personPersonSelect variant="ghost"): it reads as plain words until hovered. Never guessed widths. A row's label opens its control.EXAMPLES.md, "Properties", has the panel. - A board's card brings its own extras; never draw them round it. An item's
href(or the board'sitemLink, your router's<Link />) makes its title a link to the record;moveMenugives every card a "Move to" menu of the other columns (the way to move a card without dragging);progress(0–100,progressLabelfor its words) draws a thin progress line;descriptionLines: 2lets the second line run to two lines;itemActionsputs your own controls at a card's end; a column's or a chip's icon takes its meaning's colour (variant: 'success'), the muted grey left out.EXAMPLES.md, "Board", has them. - A region that scrolls inside the page is
ScrollArea. A side panel's list, a long menu, a table in a dialog: give it a height (or a width, across) and it scrolls what does not fit behind thin bars over its edge,fadefading the content where more of it is hidden; name it witharia-label(it names the part that scrolls), so the keys scroll it. Neveroverflow-autowith a bar of your own; the whole page keeps the browser's own scrolling.EXAMPLES.md, "ScrollArea", has the example. - A colour a person picks is
ColorPicker. A label's or a project's colour: the quiet swatch beside its name (variantleft out,default), or in a formvariant="field"; it opens an area, a hue track, a typed value and presets (your nine label colours by default, the same in light and dark). Never a native colour input.EXAMPLES.md, "ColorPicker", has the example. - Panes a person resizes are
ResizablePanelGroup. A list beside its detail, an editor beside its preview:ResizablePanels with aResizableHandlebetween each pair, as the group's direct children; sizes in percent or'240px', held byminSizeandmaxSize,collapsibleto snap one shut. The handle drags and takes the arrow keys, Home, End and Enter; never a drag handle of your own.EXAMPLES.md, "ResizablePanelGroup", has the example. - A site's header menu is
NavigationMenu. A marketing or docs site's top row:NavigationMenuLinks andNavigationMenuTriggers whoseNavigationMenuContentholdsNavigationMenuRows (title, description, icon). It opens on hover and on a press (the open trigger keeps the grey open fill, no bar under it), takes the keys and folds into a menu button and a sheet on a phone by itself; an app's own pages go in theSidebar, never here. A router's link:asChildonNavigationMenuLinkorNavigationMenuRow.EXAMPLES.md, "NavigationMenu", has the example.