JGuang

Agent Screen

Agent Screen · Beautiful UI

Preview
npx shadcn@latest add https://jiguang132.com/r/beautiful-ui/agent-screen.json

Agent Screen

Install: npx shadcn@latest add https://jiguang132.com/r/beautiful-ui/agent-screen.json

When to use

Show a labelled screen preview for a browser/desktop agent concept.

Key props and data

Native propMeaning
agentNameDisplay name above the screen.
streamSrcImage source for the screen preview; default demo is local/embedded.
variantWorking or Loading changes the native presentation.

Interaction and state checks

Check both states, narrow layout and image failure. Use only a screen source you have permission to show.

Integration boundaries

No remote control, recording, live video transport or screen permission service is included. streamSrc does not imply those capabilities.

The runnable usage and source reference below preserve the native API. These practical guides do not claim a full translation of upstream prose.

Runnable usage

Install a complete example below first, then import its installed entry. Parameterized example source, shared helpers, native components and CSS are included; no manual relative-import edits are required.

import Demo from '@/components/beautiful-ui/examples/presets/agent-screen-working-screen';
import '@/styles/beautiful-ui.css';
export default function Example() { return <Demo />; }

Preview states

Working, Loading, Working screen, Loading screen

Demo state and mock data do not provide a backend service. Inspect the component props before wiring real data.

Watch an agent's screen — open, teach a task, record.

Complete example installation

These are runnable native states and parameterized usage scenarios, not additional components. Each bundle includes its source closure, helpers, pinned dependencies, independent CSS and licenses. Scenario names are not new native component props; consult the source API below.

Working

npx shadcn@latest add https://jiguang132.com/r/beautiful-ui/examples/agent-screen/agent-screen-working.json

Default import: @/components/beautiful-ui/examples/presets/agent-screen-working

Dependencies: class-variance-authority@0.7.1, clsx@2.1.1, tailwind-merge@3.6.0, shadow-plugin@2.1.1

Loading

npx shadcn@latest add https://jiguang132.com/r/beautiful-ui/examples/agent-screen/agent-screen-loading.json

Default import: @/components/beautiful-ui/examples/presets/agent-screen-loading

Dependencies: class-variance-authority@0.7.1, clsx@2.1.1, tailwind-merge@3.6.0, shadow-plugin@2.1.1

Working screen

npx shadcn@latest add https://jiguang132.com/r/beautiful-ui/examples/agent-screen/agent-screen-working-screen.json

Default import: @/components/beautiful-ui/examples/presets/agent-screen-working-screen

Dependencies: class-variance-authority@0.7.1, clsx@2.1.1, tailwind-merge@3.6.0, shadow-plugin@2.1.1

Loading screen

npx shadcn@latest add https://jiguang132.com/r/beautiful-ui/examples/agent-screen/agent-screen-loading-screen.json

Default import: @/components/beautiful-ui/examples/presets/agent-screen-loading-screen

Dependencies: class-variance-authority@0.7.1, clsx@2.1.1, tailwind-merge@3.6.0, shadow-plugin@2.1.1

Initialize Tailwind CSS v4, import beautiful-ui.css once and synchronize theme with the host html dark class. Examples read html lang for Chinese/English and do not supply backend, authentication or recording. Network/clipboard availability still depends on the browser.

Source-backed parameter reference

Implementation signatures and types are generated from the pinned local source. Optional props, native inherited types, union branches and never exclusions are preserved. A forwardRef implementation's ref is a React reference, not an additional business prop.

AgentScreen({
  agentName = "Agent",
  streamSrc = PLACEHOLDER,
  variant,
}: {
  agentName?: string;
  streamSrc?: string;
  variant?: string;
} = {})

Destructuring defaults in source

Only defaults written directly in parameter/props destructuring are listed. Conditional expressions, runtime theme and computed values require source inspection; this is not an exhaustive behavior-default list.

// AgentScreen
agentName = "Agent"

// AgentScreen
streamSrc = PLACEHOLDER