# Components

Explore 69 CyberSpec React component demos by category, with code examples and shadcn installation commands.

[View Components on CyberSpec](https://www.cyberspec.dev/components)

## Installation

Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.

```sh
bunx --bun shadcn@latest registry add '@cyberspec-ui=https://www.cyberspec.dev/r/{name}.json'
bunx --bun shadcn@latest add @cyberspec-ui/cyber @cyberspec-ui/button
```

## Actions

- [Button](https://www.cyberspec.dev/components/sidebar/button.md) — A cut-corner button with a raised tab, five tones, and a press flash. Enable the cipher prop to scramble the label and briefly tear the frame on hover.
- [Button group](https://www.cyberspec.dev/components/sidebar/button-group.md) — Keys joined in one strip, horizontal or vertical, with hold-to-repeat.
- [Toggle](https://www.cyberspec.dev/components/sidebar/toggle.md) — A latching key that stays lit while pressed. Set cipher to decode its label when switched on.
- [Toggle group](https://www.cyberspec.dev/components/sidebar/toggle-group.md) — Toggles that share one value, one or several at a time.
- [Toolbar](https://www.cyberspec.dev/components/sidebar/toolbar.md) — Keys, toggles and separators in one bar, moved through with arrow keys.
- [Pagination](https://www.cyberspec.dev/components/sidebar/pagination.md) — Page keys with previous, next and ellipses, and a position readout.
- [Key hint](https://www.cyberspec.dev/components/sidebar/key-hint.md) — An input hint: a key glyph and what it does, optionally pressable.
- [Breadcrumb](https://www.cyberspec.dev/components/sidebar/breadcrumb.md) — A trail of pages, the current one in the signal color.

## Fields

- [Text field](https://www.cyberspec.dev/components/sidebar/text-field.md) — A labelled text input in a cut frame, with a hint, an error and an optional icon.
- [Textarea](https://www.cyberspec.dev/components/sidebar/textarea.md) — A labelled multi-line input with a character count.
- [Password input](https://www.cyberspec.dev/components/sidebar/password-input.md) — A password field with a key to show or hide it.
- [OTP input](https://www.cyberspec.dev/components/sidebar/otp-input.md) — One cut cell per character of a code, with a blinking caret in the active one.
- [Number stepper](https://www.cyberspec.dev/components/sidebar/stepper.md) — A value on a readout between minus and plus keys, with MIN and MAX tags.
- [Fieldset](https://www.cyberspec.dev/components/sidebar/fieldset.md) — A spined frame grouping several fields under a legend.

## Choices

- [Switch](https://www.cyberspec.dev/components/sidebar/switch.md) — A block that slides across a cut track and lights, with its state printed beside it.
- [Checkbox](https://www.cyberspec.dev/components/sidebar/checkbox.md) — A cut box that fills and marks when checked, with an indeterminate state.
- [Radio group](https://www.cyberspec.dev/components/sidebar/radio-group.md) — Options where one is chosen, each with a diamond indicator.
- [Segmented control](https://www.cyberspec.dev/components/sidebar/segmented-control.md) — A row of segments with an indicator that slides to the choice.
- [Slider](https://www.cyberspec.dev/components/sidebar/slider.md) — A ticked track with a cut thumb and a value readout, single or range.
- [Rating](https://www.cyberspec.dev/components/sidebar/rating.md) — A level picked from a row of diamond pips.
- [Choice list](https://www.cyberspec.dev/components/sidebar/choice-list.md) — Replies to choose from: rows in the signal color, the chosen one a solid yellow bar.

## Pickers

- [Select](https://www.cyberspec.dev/components/sidebar/select.md) — A labelled trigger that opens a list of options to choose from.
- [Combobox](https://www.cyberspec.dev/components/sidebar/combobox.md) — A text control that filters a list of options as you type.
- [Item list](https://www.cyberspec.dev/components/sidebar/item-list.md) — An always-visible list of rows in columns, the selected row a solid signal bar.
- [Command palette](https://www.cyberspec.dev/components/sidebar/command-palette.md) — A searchable list of commands behind a prompt, in a dialog.
- [Tree](https://www.cyberspec.dev/components/sidebar/tree.md) — A hierarchy with connector lines and branches that open.
- [Calendar](https://www.cyberspec.dev/components/sidebar/calendar.md) — A month grid with today marked and the chosen day lit.
- [Date picker](https://www.cyberspec.dev/components/sidebar/date-picker.md) — A date field with a calendar that opens beside it.

## Navigation

- [Tabs](https://www.cyberspec.dev/components/sidebar/tabs.md) — Tabs over panels with a sliding indicator, or as cut keys. Set cipher on key tabs to briefly split the selected key’s edge.
- [Side tabs](https://www.cyberspec.dev/components/sidebar/side-tabs.md) — Icon keys stacked down the edge, with a panel beside them.
- [Menu](https://www.cyberspec.dev/components/sidebar/menu.md) — A key that opens a menu of actions, with checkable items, groups and a submenu.
- [Context menu](https://www.cyberspec.dev/components/sidebar/context-menu.md) — An area that opens a menu on right-click, a long press, or the keyboard.
- [Menubar](https://www.cyberspec.dev/components/sidebar/menubar.md) — A bar of menus with one tab stop.
- [Navbar](https://www.cyberspec.dev/components/sidebar/navbar.md) — A navigation bar with status readouts, page links and trailing content.

## Overlays

- [Dialog](https://www.cyberspec.dev/components/sidebar/dialog.md) — A modal panel on a spined frame that tears in over a dimmed page, with its answers on keys below.
- [Alert dialog](https://www.cyberspec.dev/components/sidebar/alert-dialog.md) — A flagged confirmation that has to be answered, and that an agent has to ask a person about.
- [Drawer](https://www.cyberspec.dev/components/sidebar/drawer.md) — A sheet that glitches in and out at the edge of the page. Drag it toward that edge to dismiss it.
- [Popover](https://www.cyberspec.dev/components/sidebar/popover.md) — A key that opens a framed surface beside it, with a title, description and body.
- [Tooltip](https://www.cyberspec.dev/components/sidebar/tooltip.md) — A small cut label that appears on hover or focus.
- [Hover card](https://www.cyberspec.dev/components/sidebar/hover-card.md) — A name that previews a small dossier on hover or focus.
- [Toast](https://www.cyberspec.dev/components/sidebar/toast.md) — Keys that raise a notification in each tone.

## Layout

- [Panel](https://www.cyberspec.dev/components/sidebar/panel.md) — The kit's container: a frame with a spine or a title bar, a heading, micro-print and a body.
- [Card](https://www.cyberspec.dev/components/sidebar/card.md) — A content card with a scanlined media slot. Set cipher on an interactive card to decode its title on hover.
- [Accordion](https://www.cyberspec.dev/components/sidebar/accordion.md) — Stacked sections that open from numbered headings, each with a glyph that turns.
- [Collapsible](https://www.cyberspec.dev/components/sidebar/collapsible.md) — One section behind a key that shows and hides it.
- [Resizable](https://www.cyberspec.dev/components/sidebar/resizable.md) — Panels split by a handle that drags or steps with keys.
- [Scroll area](https://www.cyberspec.dev/components/sidebar/scroll-area.md) — A scrolling region with a thin scrollbar and edge indicators.
- [Separator](https://www.cyberspec.dev/components/sidebar/separator.md) — A rule with tick marks, plain, labelled or vertical.
- [Carousel](https://www.cyberspec.dev/components/sidebar/carousel.md) — A viewer: slides in a cut frame, with keys, segment indicators and a position readout.

## Data

- [Alert](https://www.cyberspec.dev/components/sidebar/alert.md) — An inline notice on a spined frame: info, success, warning or danger, each with its own glyph.
- [Badge](https://www.cyberspec.dev/components/sidebar/badge.md) — A small cut label in seven tones, with count and status variants.
- [Avatar](https://www.cyberspec.dev/components/sidebar/avatar.md) — A portrait in a cut frame, with initials over a generated scanline field when there's no image.
- [Progress](https://www.cyberspec.dev/components/sidebar/progress.md) — A segmented bar with a percentage readout, and an indeterminate state.
- [Meter](https://www.cyberspec.dev/components/sidebar/meter.md) — A segmented gauge with thresholds that change its tone and print a word.
- [Skeleton](https://www.cyberspec.dev/components/sidebar/skeleton.md) — Placeholder lines and blocks for content that's loading.
- [Data table](https://www.cyberspec.dev/components/sidebar/data-table.md) — Rows with selection, sortable columns, status badges and a menu per row.
- [Feed](https://www.cyberspec.dev/components/sidebar/feed.md) — Dated events in order on a vertical rule: who did what, and when.
- [Code block](https://www.cyberspec.dev/components/sidebar/code-block.md) — Highlighted code with line numbers, a filename tab and a copy key. No highlighting dependency.

## HUD

- [Glitch text](https://www.cyberspec.dev/components/sidebar/glitch-text.md) — Text that decodes itself into place and tears for a moment, with a stable copy for screen readers.
- [Readout](https://www.cyberspec.dev/components/sidebar/readout.md) — A large numeral with a unit and a label that counts to its new value when it changes.
- [Hex stat](https://www.cyberspec.dev/components/sidebar/hex-stat.md) — An attribute as a hexagon holding an icon, a value and a name, and a honeycomb to lay several out.
- [Item slot](https://www.cyberspec.dev/components/sidebar/item-slot.md) — A gear tile with a rarity spine, mod sockets, a count and an empty state. Set cipher to briefly split its edge on selection.
- [Signal graph](https://www.cyberspec.dev/components/sidebar/signal-graph.md) — A compact live graph, as a trace or a spectrum, with a text summary.
- [Loader](https://www.cyberspec.dev/components/sidebar/loader.md) — A boot screen in miniature: a mark, a thin progress bar, a percentage and a cycling status line.
- [Holo card](https://www.cyberspec.dev/components/sidebar/holo-card.md) — A surface that tilts toward the pointer in 3D, with a sheen and layers at different depths.
- [Reticle](https://www.cyberspec.dev/components/sidebar/reticle.md) — A lock-on bracket that snaps onto whatever it wraps when hovered, focused or active.
- [Micro-print](https://www.cyberspec.dev/components/sidebar/micro.md) — The printed decoration around frames: micro-print lines, barcodes, rulers, data streams and corner brackets.
- [Terminal](https://www.cyberspec.dev/components/sidebar/terminal.md) — A console log with tagged lines, a prompt with history, and a follow-the-end scroll.
- [Map](https://www.cyberspec.dev/components/sidebar/map.md) — A flat map or rotatable globe with selectable markers, routes, and a bundled world basemap.
