Skip to content
shadcn.io

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.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

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.

How does it fit on a phone?

The grid is two columns by four, the beam and the toggle are dropped (there is nothing moving to pause), and the band under the grid stacks its finding, its fix and its last scan. Nothing scrolls sideways at 320 pixels.

What happens in a right-to-left layout?

The grid, the band and the toggle follow the page's direction, and the beam starts from the start side, so it sweeps the other way in Arabic or Hebrew.

  • Pro

    Status Ops Board Features

    Metrics and charts

    An 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

    A 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

    Six 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

    An 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

    A 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

    A 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.