# Daemon

Run a program, watch it change the deck, and undo its work.

[View Daemon on CyberSpec](https://www.cyberspec.dev/daemon)

## What this screen demonstrates

An agent console: what the agent sees, what it does, a permission prompt, and undo.

## 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/daemon.json
```

## Usage

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

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

## Components in this screen

- [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.
- [Checkbox](https://www.cyberspec.dev/components/sidebar/checkbox.md) — A cut box that fills and marks when checked, with an indeterminate state.
- [Collapsible](https://www.cyberspec.dev/components/sidebar/collapsible.md) — One section behind a key that shows and hides it.
- [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.
- [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.
- [Radio group](https://www.cyberspec.dev/components/sidebar/radio-group.md) — Options where one is chosen, each with a diamond indicator.
- [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.
- [Select](https://www.cyberspec.dev/components/sidebar/select.md) — A labelled trigger that opens a list of options to choose from.
- [Slider](https://www.cyberspec.dev/components/sidebar/slider.md) — A ticked track with a cut thumb and a value readout, single or range.
- [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.
- [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.
- [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.
- [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.

## Resources

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