# Comms

Open a contact’s thread and choose how to reply.

[View Comms on CyberSpec](https://www.cyberspec.dev/comms)

## What this screen demonstrates

Contacts, a message thread, and replies to choose from.

## 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 add https://www.cyberspec.dev/r/comms.json
```

## Usage

```tsx
import { Cyber } from "@/components/ui/cyber"
import ExampleScreen from "@/components/blocks/comms/comms"

export default function App() {
  return (
    <Cyber>
      <ExampleScreen />
    </Cyber>
  )
}
```

## Components in this screen

- [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.
- [Badge](https://www.cyberspec.dev/components/sidebar/badge.md) — A small cut label in seven tones, with count and status variants.
- [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.
- [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.
- [Feed](https://www.cyberspec.dev/components/sidebar/feed.md) — Dated events in order on a vertical rule: who did what, and when.
- [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.
- [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.
- [Meter](https://www.cyberspec.dev/components/sidebar/meter.md) — A segmented gauge with thresholds that change its tone and print a word.
- [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.
- [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.
- [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.
- [Scroll area](https://www.cyberspec.dev/components/sidebar/scroll-area.md) — A scrolling region with a thin scrollbar and edge indicators.
- [Select](https://www.cyberspec.dev/components/sidebar/select.md) — A labelled trigger that opens a list of options to choose from.
- [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.

## Resources

- [All example screens](https://www.cyberspec.dev/examples.md)
- [Comms source files](https://github.com/agnelnieves/cyberspec/tree/main/registry/cyber/blocks/comms)
- [Shadcn registry item](https://www.cyberspec.dev/r/comms.json)
