Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Blocks
  2. Ai Elements
  3. API and Development

AI elements

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Conversation UI is separate exports. The shell is ChatPanel from @prepared911/ui/blocks/chat-panel. A fenced code surface is CodeBlock from @prepared911/ui/code-block. A sweeping label is Shimmer from @prepared911/ui/shimmer. Message rows are Message from @prepared911/ui/message.
ChatPanel
variant is ChatPanelVariant.Default or Annotation. Pass items, label, jumpToLatestLabel, emptyTitle, and an optional composer. The composer is a ChatInput you render. Default floats it over the transcript. Annotation docks it.
CodeBlock
code and label are required. showCopy defaults to true and then requires copyLabel, copiedLabel, and copyErrorLabel.
Shimmer
children is the label. active sweeps a highlight. base is ShimmerBase.Dim or Readable. icon is a decorative glyph.
Previous
AI Elements / Usage
Next
AI Elements / Accessibility
On this page
ChatPanel
CodeBlock
Shimmer