Skip to content

Assistant

AI conversation screens: a streamed analyst workspace.

Installation & usage

npx @youj/cli add app-ai-workspace

Also installs app-page, async-button, avatar, button, chat, icon-file-text, icon-menu, icon-pencil, icon-search, icon-share, icon-sparkles, input-group, select, sheet, sliding-indicator, youj-core, youj-presets, youj-ui-core.

The CLI copies the block to blocks/app/ai-workspace.tsx with every component it uses, so it’s yours to edit.

Demo content: this block doesn’t take data yet, so edit its file after adding it.

Reference

Props4 props

Props

AiWorkspace props
PropType
themeThemeInput

Wraps the block in this theme. Default: the theme around it.

–
embeddedboolean

A page in your app's frame: the shared page header (AppPage) titled with the open chat, holding Share, over the chat list and the conversation filling the page; no main of its own.

default true

true
autoplayboolean

Answer the open chat's question live as the workspace opens.

default true

true
defaultModelModelId
'deep''fast'

Atlas Deep thinks before it answers; Atlas Fast doesn't.

default 'deep'

'deep'
Built from8 components
Accessibilitylandmarks, conversation, keyboard

Accessibility

AI workspace has a main with one h1, a labelled history nav that marks the current chat with aria-current, a status region for progress, and a sheet for the history on phones. The streamed answer starts on its own (set autoplay to false to start it still), and under reduced motion text lands a phrase at a time and the shimmer and carets hold still. Links and buttons are real a and button elements with the kit’s focus ring.