Tile manager

Drag a tile by its header to move it; drag a side / bottom / corner grip to resize. The board keeps one layout per column count: rearrange at one width and the other widths keep theirs. Below the stack width the tiles stack in one column. Layouts persist to localStorage.

Keyboard shortcuts
  • Tab — focus the board. Exactly one tile is in the tab order, so Tab again leaves it.
  • ← → ↑ ↓ — focus the previous / next tile in reading order · Home / End — first / last
  • M — move mode: arrows move the tile one cell · R — resize mode: arrows grow or shrink it
  • Enter — commit · Esc — restore the layout from before the mode, or cancel a pointer gesture
Panels:
Lock:

Board width: —pxColumns: —

Weather
Sunny · 22 °C · 5 km/h NW
Inbox
3 unread · 2 starred
Stats
1.2k visits · ↑12% week-over-week
Calendar
Next: Standup at 10:00
Notes
“Refactor packer · push v1 by Friday”
Activity
7 commits · 2 PRs reviewed today
Read-only.
Stored layouts
{}

Source

const [layouts, setLayouts] = useState<TileLayouts>(  () => JSON.parse(localStorage.getItem('dashboard') ?? '{}'),);useEffect(() => localStorage.setItem('dashboard', JSON.stringify(layouts)), [layouts]);<BsTileManager  tiles={tiles}  layouts={layouts}  onLayoutsChange={setLayouts}  stackBelow={576}  gap={12}  label="Dashboard"  header={({ tile }) => (tile as DashboardTile).title}  content={({ tile }) => <div className="tile-body">{(tile as DashboardTile).body}</div>}/>