ns-ui

Sheet ASCII Range

A spreadsheet-style rectangular cell range select where the border draws itself in real box-drawing glyphs (┌─┐│└┘) and a live ASCII status bar prints the aggregate — count, sum, mean, min, max — as the range grows by drag or Shift+Arrow.

Use when a rectangular multi-cell range selection over tabular numeric data where the aggregate of the current selection should read live, spreadsheet-style — pick this over table-heat-shimmer when the selection itself is the point, not a fixed row's status. table-heat-shimmer's rows aren't selectable at all; its mechanic is which rows shimmer, not which cells are chosen.

Install

npx shadcn add https://design.helpmarq.com/r/sheet-ascii-range.json
  • spreadsheet
  • grid
  • selection
  • ascii
  • mono
  • box-drawing
  • keyboard-navigation
  • data-visualization

ns-ui / sheet-ascii-range

Shipment logdrag or shift+arrow to select
W1
W2
W3
W4
W5
W6
W7
W8
MON
TUE
WED
THU
FRI
SAT
n=0 — click a cell or drag a range

Drag across cells, or focus one and Shift+Arrow to extend. The border draws itself in box-drawing glyphs and the status bar recomputes live.

Props

PropTypeDefaultDescription
data?number[][]rows x cols numeric grid
rowLabels?string[]
colLabels?string[]
unit?stringunit suffix printed after aggregate numbers, e.g. "units"
title?string
className?string