shadcn.io is not affiliated with official shadcn/ui
Scanner Beam Sweep Grid Features Block for React
A security-posture scanner: eight checks in a hairline grid with a beam that sweeps across it, a Pause scan toggle, and the chosen check's finding, fix and last scan in a band under it.
Installation
Overview
A security-posture scanner for React with Base UI. A left-aligned header says "Scan your whole posture at once" and holds a "Pause scan" toggle at its end. Under it, one rounded frame holds eight checks (TLS, headers, secrets, dependencies, accounts, ports, backups and sign-in) in a grid that shares its hairlines, four across from sm and two on a phone. Each check is a button with an icon, its name and its result: a dot and a word, with the foreground colour for a pass and the status tones for the three exceptions. A thin beam with a faint trail sweeps across the grid on a loop; it holds while the pointer is over the grid or a control has focus, and the toggle stops it. Choosing a check shows its finding, its fix and its last scan in the band under the grid (all eight share one cell and the others are invisible, so the band never changes height), with a count of passes, reviews and failures counted from the eight checks. It's built from Guides, Toggle, Status and Badge, with CSS for the beam.
FAQ
How do I use my own checks?
Edit CHECKS: each has an id, a name, an icon, a result (pass, review or fail), a finding, a fix and when it last ran. The grid, the detail band and the counts above it are all read from that list; FIRST names the check shown before anyone chooses one. A ninth check adds a cell, so keep the count a multiple of four (or two) to avoid a gap in the last row.
What does the beam do, and how do I stop it?
Nothing but draw the eye: it is decoration, a layer that slides across the grid every seven seconds with CSS. It holds while the pointer is over the grid or any control has keyboard focus, and the "Pause scan" toggle in the header stops it and fades it out until you press it again. Change --tw-animation-duration on the BEAM classes to speed it up or slow it down.
What happens with reduced motion?
The beam starts hidden and still. The toggle starts pressed, and pressing it turns the beam on for a visitor who asked for it. Everything else is unchanged, because nothing else moves on its own.
How is the grid made accessible?
The checks are a list of real buttons, each pressed when it is chosen and naming the band it controls, so Tab walks the eight and Space or Enter chooses one. The band is a labelled section whose heading is the chosen check. The results are words as well as dots, so colour is never the only signal. The beam is hidden from assistive technology.
Related
- Pro
Status Ops Board Features
Metrics and chartsAn error-budget board for an SLO monitor: five services in bands with a budget bar, a 24-point burn sparkline and a status each, a 1h, 6h, 24h and 30d toggle, and a summary counted from the rows.
- Pro
Command Center Metric Board Features
Metrics and chartsA metrics console in a card in a card that follows your theme: six metric tiles with a value, a signed change and a sparkline are the tabs of one tablist, and choosing one opens a larger chart of its series in a strip below.
- Pro
Compliance Badge Grid Features
Metrics and chartsSix control cards for a privacy-operations tool, each with a coverage ring counted from the data, a sentence of counts and a Passing or open-items badge.
- Pro
Magnifier Lens Features
Live controlsAn inspection lens over a dense latency table: a magnified copy clipped to a circle follows the pointer and a readout names the cell under it, with arrow keys to move it and a tap-to-pin readout on a phone.
- Pro
Keyboard Focus Grid Features
Live controlsA six-cell feature grid for a keyboard-first notes app: one focus ring glides between cells with the arrow keys, and Enter or a tap writes the cell's detail into a strip under the grid.
- Pro
Centered Uptime Status Rows Hero
Stats and live dataA showcase centered hero for an API platform, with a live status pill, a Shine Button and a status panel of full-width bands: five services' uptime over the last 30 days.