# ai: the rest of AI Elements

`kit/ai.mote` is every AI Elements component (elements.ai-sdk.dev) that is
not the chat core (`kit/chat.mote`) or the workflow canvas (`kit/flow.mote`):
twenty families, under the original's part names. Gallery:
`examples/kit/ai.mote`. Test: `tests/kit_ai.real.mjs` (162 checks).

    mote dev examples/kit/ai.mote --port 5017 &
    node tests/real.mjs http://localhost:5017/ tests/kit_ai.real.mjs

Nothing here uses the AI SDK: plain page state drives every component.

## How the parts share state

The original shares state between parts through React context. Mote has
none, so each family uses one of three idioms. The usage lines below show
which.

1. **One value, passed to the parts that need it.** The part that changes
   it writes it back: `SandboxTabsTrigger value="code" tab=tab`,
   `EnvironmentVariablesToggle showValues=show`, `ConversationContent
   stuck=atEnd`.
2. **One record of page state, taken by every part.** For the families with
   several values (AudioPlayer, WebPreview, MicSelector, VoiceSelector, and
   Question's answer). The page declares the fields it starts with; the
   parts add the rest, which are optional in their types:

       state player = {at: 0, playing: false}
       AudioPlayerPlayButton player=player

   A page that wants to read a field the parts add declares it:
   `state site: {url: string, loading: bool?} = {url: "…"}`.
   The parts never write a field in place: they put a new record in the
   prop (`player = {...player, playing: true}`), which is written back to
   the page's state and tells only what reads that state.
3. **A root given its data draws the usual parts itself.** `Snippet
   code="…"`, `PackageInfo name="react" …`, `SchemaDisplay method=… path=…`,
   `EnvironmentVariable name=… value=…`, `JSXPreview html=…`. Without the
   data the root is only the frame and the page composes the parts, handing
   each what it shows. (The original decides by whether it was given
   children, which a Mote component cannot see.)

Handlers: `press` and `submit` are events, so they take an action or a
`{block}`. `seek` (Transcription) and `transcript` (SpeechInput) are handed
a value, so give them an action that takes it: `seek=jump` with
`action jump(t: number)`.

Icons are children, not props: `ArtifactAction tooltip="Run"` with
`icon "play"` under it. An icon's name is written out in Mote, so it cannot
be passed as a value.

## Chatbot

### Conversation

    column height=400
      Conversation
        ConversationContent stuck=atEnd
          for m in messages
            …
        ConversationScrollButton stuck=atEnd
        ConversationDownload messages=messages

| part | props | |
|---|---|---|
| `Conversation` | | the frame (`role=log`); give it a height through its parent |
| `ConversationContent` | `stuck` (bool, written back) | the scrolling column, a `feed`: stays at its end as it grows until the reader scrolls away |
| `ConversationEmptyState` | `title` `description` | its children are the icon |
| `ConversationScrollButton` | `stuck` | shown while `stuck` is false; a press sets it true, which scrolls to the end |
| `ConversationDownload` | `messages` `[{role, text}]`, `filename` ("conversation.md") | saves `**Role:** text` blocks, a blank line between, through `fs.save` |

Differs: `stuck` is passed to both parts (the original reads it from
use-stick-to-bottom's context). The download takes `{role, text}` records,
not AI SDK `UIMessage`s with parts, and has no `formatMessage` function.
`ConversationEmptyState`'s `icon` prop is its children.

### Question

    state a = {selectedValues: [], text: ""}

    Question value=a selectionMode="multiple" submit=answered
      QuestionPrompt "Which platforms?"
      QuestionDescription "Pick any."
      QuestionOptions selectionMode="multiple" aria-label="Platforms"
        QuestionOption "Web" value="web" answer=a selectionMode="multiple"
        QuestionOption "iOS" value="ios" answer=a selectionMode="multiple"
      QuestionInput answer=a
      QuestionActions
        QuestionSubmit "Answer" answer=a

| part | props | |
|---|---|---|
| `Question` | `value` (the answer record), `selectionMode` single \| multiple, `disabled`, `submit` | a form; `submit` is handed `{selectedValues, text}` with the text trimmed, and is not called with nothing |
| `QuestionPrompt`, `QuestionDescription` | | |
| `QuestionOptions` | `selectionMode` | `radiogroup`, or `group` when multiple |
| `QuestionOption` | `value`, `answer`, `selectionMode`, `disabled` | a radio or a checkbox (`aria-checked`) |
| `QuestionInput` | `answer`, `placeholder`, `rows`, `disabled` | free text |
| `QuestionActions` | | |
| `QuestionSubmit` | `answer`, `disabled` | disabled until an option is picked or non-blank text typed |

Differs: the parts take the answer as `answer=` and the mode as
`selectionMode=` themselves. There is no `defaultValue` or `onValueChange`:
the record is the page's state. A single-mode option, once picked, stays
picked until another is. Arrow keys do not move between radios; each
option is a tab stop.

### Shimmer

    Shimmer "Thinking…" duration=2 spread=2

`duration`: seconds per sweep (2). `spread`: the width of the light, in
eighths of the text (2). CSS only.

Differs: the original animates a gradient clipped to the text. Mote has no
way to write keyframes, so this is built from the built-in `rise`: a
soft-edged window slides across a second, brighter copy of the text
(`aria-hidden`), which counter-slides to stay still. The light fades in as
it crosses. **It does not respect reduced motion**: Mote has no line for
`prefers-reduced-motion`. There is no `as` prop; the text is a span.

## Code

### Artifact

    Artifact
      ArtifactHeader
        column
          ArtifactTitle "area.py"
          ArtifactDescription "Generated a moment ago"
        ArtifactActions
          ArtifactAction tooltip="Copy" label="Copy the code" press=copyIt
            icon "copy" size=15
          ArtifactClose press={open = false}
      ArtifactContent
        …

`ArtifactAction`: `tooltip` (shown on hover and focus), `label` (its name
for a screen reader; the tooltip if none), `press`, `disabled`; its
children are the icon. `ArtifactClose`: `press`.

Differs: `icon` is the children. `ArtifactClose` does nothing by itself, as
in the original.

### Commit

    Commit open=true
      CommitHeader
        CommitAuthor
          CommitAuthorAvatar initials="AL"
        CommitInfo
          CommitMessage "Fix the build"
          CommitMetadata
            CommitHash "9f3c2ab"
            CommitSeparator
            CommitTimestamp date=when
        CommitActions
          CommitCopyButton hash="9f3c2ab41d7e…"
      CommitContent
        CommitFiles
          CommitFile
            CommitFileInfo
              CommitFileStatus status="modified"
              CommitFileIcon
              CommitFilePath "src/app.ts"
            CommitFileChanges
              CommitFileAdditions count=42
              CommitFileDeletions count=9

| part | props | |
|---|---|---|
| `Commit` | `open` | a `details`: how it starts |
| `CommitHeader` | | its `summary`: a press, Enter or Space opens and closes |
| `CommitAuthorAvatar` | `initials` | |
| `CommitTimestamp` | `date` (milliseconds, as `now()` gives) | "just now", "5 minutes ago", "3 hours ago", "yesterday", "6 days ago", "last month", "4 months ago", "last year", "3 years ago"; the full date is its title |
| `CommitCopyButton` | `hash`, `timeout` (2000) | copies, shows a tick |
| `CommitFileStatus` | `status` added \| modified \| deleted \| renamed | A, M, D, R, each its colour |
| `CommitFileAdditions`, `CommitFileDeletions` | `count` | nothing when 0 |
| the rest | | layout |

Differs: `Commit` keeps its own open state (`open` is not written back).
The timestamp is finer than the original's (which counts days only), is
worked out when drawn and does not tick, and has no `datetime` attribute
(Mote has no `new Date`). `CommitSeparator` is always "•". No `onCopy` /
`onError`.

### Environment Variables

    EnvironmentVariables
      EnvironmentVariablesHeader
        EnvironmentVariablesTitle ".env"
        EnvironmentVariablesToggle showValues=show
      EnvironmentVariablesContent
        EnvironmentVariable name="PORT" value="5017" showValues=show
        EnvironmentVariable
          EnvironmentVariableGroup
            EnvironmentVariableName "API_KEY"
            EnvironmentVariableRequired
          EnvironmentVariableGroup
            EnvironmentVariableValue value=key showValues=show
            EnvironmentVariableCopyButton name="API_KEY" value=key copyFormat="export"

| part | props | |
|---|---|---|
| `EnvironmentVariablesToggle` | `showValues` (written back) | a switch |
| `EnvironmentVariable` | `name`, `value`, `showValues` | given `name`: the name, its children, the value. Given none: the row |
| `EnvironmentVariableValue` | `value`, `showValues` | dots (4 to 20) until shown; the value is not in the page while hidden |
| `EnvironmentVariableCopyButton` | `name`, `value`, `copyFormat` value \| name \| export, `timeout` | export is `export NAME="value"` |
| `EnvironmentVariableRequired` | | a "Required" badge |

Differs: `showValues` lives in the page and goes to the toggle and to each
value (no `defaultShowValues` / `onShowValuesChange`); name and value go to
each part that shows them.

### JSX Preview, as HtmlPreview

    HtmlPreview html=generated isStreaming=busy height=300

    JSXPreview html=generated isStreaming=busy

The original parses a JSX string into live React components. That is
React's own doing and cannot exist here. The honest equivalent is a preview
of generated **HTML**:

- `HtmlPreview html= isStreaming= title=`: the markup in a frame of its own.
  While `isStreaming`, tags still open at the end are closed, so the
  half-written page draws; a tag cut off mid-way is left out; a stray `<`
  is text. Size it with `height` (240).
- Scripts are off: a `<script>` is taken out, and the frame carries a
  content policy (`default-src 'none'`) that refuses every script, inline
  handler, `javascript:` address and outside request. Pictures from `data:`
  and `https:` and inline styles are let through. The frame is a `data:`
  page, so it has an origin of its own and cannot reach the page around it.
- `JSXPreview html= isStreaming=` draws `JSXPreviewContent` and
  `JSXPreviewError`; `JSXPreviewContent html= isStreaming=` is `HtmlPreview`;
  `JSXPreviewError html=` says "Scripts in this markup were not run." when
  the markup asked for one.

Differs, plainly: it takes `html`, not `jsx`. There are no `components` or
`bindings`. HTML cannot fail to parse, so `JSXPreviewError` reports what
was refused, not a parse error, and there is no `onError`. The frame is
built with `src="data:…"` and a policy, not `srcdoc` and `sandbox`, which
Mote's `iframe` does not take: a link inside it opens in a new tab, and
nothing but the policy stops a form posting. In an app that says
[`policy=strict`](../delivery.md#what-is-refused) the frame is refused:
show such previews from another origin there.

### Package Info

    PackageInfo name="react" currentVersion="18.3.1" newVersion="19.2.0" changeType="major"
      PackageInfoDescription "The library for user interfaces."
      PackageInfoContent
        PackageInfoDependencies
          PackageInfoDependency name="scheduler" version="^0.27.0"

`changeType`: major \| minor \| patch \| added \| removed. Given `name`,
`PackageInfo` draws `PackageInfoHeader` (`PackageInfoName`,
`PackageInfoChangeType changeType=`) and `PackageInfoVersion currentVersion=
newVersion=`; its children follow. `PackageInfoDependencies title=`.

Differs: composed by hand, each part is handed what it shows.

### Sandbox

    Sandbox
      SandboxHeader title="area.py" state="output-available"
      SandboxContent
        SandboxTabs
          SandboxTabsBar
            SandboxTabsList
              SandboxTabsTrigger "Code" value="code" tab=tab
              SandboxTabsTrigger "Output" value="output" tab=tab
          SandboxTabContent value="code" tab=tab
            …
          SandboxTabContent value="output" tab=tab
            …

`Sandbox open=` (true): a `details`. `SandboxHeader title= state=`: the
tool states input-streaming (Pending), input-available (Running),
approval-requested (Awaiting Approval), approval-responded (Responded),
output-available (Completed), output-error (Error), output-denied (Denied).
`tab` is the page's state: the trigger writes it, the content shows when
it matches.

Differs: `tab=` on each trigger and content. `SandboxTabs` has no
`defaultValue`. Arrow keys do not move between tabs.

### Schema Display

    SchemaDisplay method="POST" path="/v1/projects/{projectId}/deployments" description="…" parameters=params requestBody=body responseBody=reply

    SchemaDisplay
      SchemaDisplayHeader
        SchemaDisplayMethod method="GET"
        SchemaDisplayPath path="/v1/deployments/{id}"
      SchemaDisplayDescription "One deployment."
      SchemaDisplayContent
        SchemaDisplayParameters
          SchemaDisplayParameter name="id" type="string" required=true location="path"
        SchemaDisplayResponse
          SchemaDisplayProperty name="id" type="string" required=true
          SchemaDisplayExample code=example

`parameters`: `[{name, type, required, description, location}]` (location:
path \| query \| header). `requestBody`, `responseBody`: `[{name, type,
required, description, properties: […], items: {…}}]`, as json.
`SchemaDisplayProperty` draws an object's `properties` and an array's
`items` under it, a step in, as deep as they go. `SchemaDisplayMethod`:
GET, POST, PUT / PATCH, DELETE each a colour. `SchemaDisplayPath` picks out
each `{param}`. Parameters, Request Body and Response open and close.
`SchemaDisplayExample code= language=` (json) is a `Highlight`.

Differs: the bodies are lists of properties (the original's shape too).
PUT and PATCH share a colour. A nested property is always shown open.

### Snippet

    Snippet code="mote build app.mote" prefix="$"

    Snippet
      SnippetAddon
        SnippetText "$"
      SnippetInput code=cmd
      SnippetAddon align="inline-end"
        SnippetCopyButton code=cmd

`SnippetAddon align=` inline-start \| inline-end. `SnippetCopyButton code=
timeout=`. The input cannot be edited.

Differs: `prefix` is a short way to the `$` the original composes by hand.
The code goes to the input and to the button. Drawn directly, not over
InputGroup.

### Web Preview

    state site = {url: "https://example.com"}

    WebPreview preview=site
      WebPreviewNavigation
        WebPreviewNavigationButton tooltip="Back" go="back" preview=site
          icon "arrow-left" size=15
        WebPreviewNavigationButton tooltip="Forward" go="forward" preview=site
          icon "arrow-right" size=15
        WebPreviewNavigationButton tooltip="Reload" go="reload" preview=site
          icon "rotate-cw" size=15
        WebPreviewUrl preview=site
        WebPreviewDeviceButtons preview=site
        WebPreviewFullscreenButton preview=site
      WebPreviewBody preview=site
      WebPreviewConsole logs=logs

The record: `url`; and, added by the parts, `history` (addresses visited),
`index` (which is on show), `loading`, `device` (phone 390 \| tablet 768 \|
desktop), `fullscreen`, `reloads`.

| part | props | |
|---|---|---|
| `WebPreview` | `preview` | 420 high unless styled; covers the window when `fullscreen` |
| `WebPreviewNavigationButton` | `tooltip`, `go` back \| forward \| reload, `preview`, `disabled` | with `go` it works the history and disables itself at either end; without, give it a `press` |
| `WebPreviewUrl` | `preview`, `placeholder` | Enter loads (and puts `https://` before a bare name); a new address after going back drops what was ahead |
| `WebPreviewBody` | `preview`, `title` | the frame, with a bar across the top until it has loaded |
| `WebPreviewConsole` | `logs` `[{level, message, timestamp}]`, `open` | level: log \| warn \| error; opens and closes |
| `WebPreviewDeviceButtons`, `WebPreviewFullscreenButton` | `preview` | not in the original |

Differs: the original leaves history to the page; here back, forward and
reload work. The frame has no `sandbox` attribute (Mote's `iframe` does not
take one), so it is an ordinary frame. A page that moves on by itself
inside the frame is not seen by the history. The console shows what the
page gives it: nothing is read out of the frame.

## Voice

### Audio Player

    state player = {at: 0, playing: false}

    AudioPlayer player=player
      AudioPlayerElement player=player src=song.url("audio/wav")
      AudioPlayerControlBar
        AudioPlayerPlayButton player=player
        AudioPlayerSeekBackwardButton player=player seekOffset=10
        AudioPlayerSeekForwardButton player=player seekOffset=10
        AudioPlayerTimeDisplay player=player
        AudioPlayerTimeRange player=player
        AudioPlayerDurationDisplay player=player
        AudioPlayerMuteButton player=player
        AudioPlayerVolumeRange player=player

The record: `at` (seconds), `playing`; and `duration`, `volume` (0 to 1),
`muted`, `seek` (set it to a time to go there), `ready`, `error`.
`src` is an address; bytes become one with `.url()`.

Keyboard: the player is one tab stop. Space or k plays and pauses, the
arrows left and right step by the root's `seekOffset` (10), up and down
change the volume, m mutes, Home and End go to either end. A press on any
control leaves the keyboard on the player.

**Differs, and this is the big one: it is not over `<audio>`.** Mote gives
a page no way to call `play()` on an element, set its time, or hear its
`timeupdate`. `AudioPlayerElement` fetches the sound whole, decodes it
(`aud.open`) and plays it through the mixer `reel` uses, which does give
time and playing as values. So: no streaming (the whole file is fetched
first, and the address must allow that), the "buffered" range is all or
nothing, and a page with an AudioPlayer carries the sound batteries. The
controls are `role=button` and `role=slider` elements that are not tab
stops of their own. There is no playback-rate control (the original's
media-chrome has none here either). An `audio` element with `at`,
`playing`, `volume`, `muted`, `duration` to bind would let this be rebuilt
over `<audio>` without changing a usage line.

### Mic Selector

    state mics = {value: ""}

    MicSelector mics=mics
      MicSelectorTrigger mics=mics
        MicSelectorValue mics=mics
      MicSelectorContent mics=mics
        MicSelectorInput mics=mics
        MicSelectorList mics=mics

The record: `value` (the device's id); and `open`, `search`, `devices`
`[{id, label}]`, `asked`, `error`. `MicSelectorList` asks `mic.list()` the
first time `open` is true, draws a `MicSelectorItem value= mics=` with a
`MicSelectorLabel label=` for each device the search keeps, and
`MicSelectorEmpty` (`empty=` words) when there are none. If the browser
will not name them (leave refused, or no https) it says so in words
(`role=alert`); nothing is thrown.

Differs: the prop is `mics`, not `mic` (which is Mote's own name for the
microphones). The list draws its own items (the original hands the devices
to a function the page writes). Typing narrows; arrow keys do not move
through the list (Tab does). The devices are not asked for again when one
is plugged in. `MicSelectorValue placeholder=`.

### Persona

    Persona state="listening" variant="opal" width=96 height=96

`state`: idle \| listening \| thinking \| speaking \| asleep. `variant`:
obsidian \| mana \| opal \| halo \| glint \| command.

**The artwork is Mote's own.** The original is a Rive animation file,
which cannot be reproduced. This is an orb drawn in CSS: a turning
gradient with a highlight. Idle turns slowly; listening has a pulsing ring
and a dot; thinking turns fast inside an orbiting arc; speaking has three
bouncing bars; asleep is grey, smaller, still, with closed eyes. The six
variants are six colourings of that orb, not the original's six
characters. No `onLoad`, `onReady` and the like: there is nothing to load.

### Speech Input

    SpeechInput transcript=heard lang="en-US"

A round microphone button. A press listens (`speech.listen`), and what was
said goes to `transcript`. It shows listening (red, a ring) and processing
(a spinner). `disabled`. `timeout` (30000 ms): how long it waits.

Differs: Mote cannot ask whether the browser can listen without trying, so
the first press finds out: from then on the button is `aria-disabled`,
with "This browser cannot listen." as its tip. Any other failure (no
microphone, leave refused) shows a crossed-out microphone and the reason
as the tip, and it can be pressed again. A press while listening does not
stop it (`speech.listen` cannot be called off); it ends when the speaker
does. There is no `onAudioRecorded` fallback that records and sends audio
to a server.

### Transcription

    Transcription segments=parts currentTime=player.at seek=jump

    TranscriptionSegment text="Hello" start=0 end=1.2 currentTime=t seek=jump

`segments`: `[{text, start, end}]` in seconds. Past, active (`aria-current`)
and future segments each look different; a press calls `seek` with the
segment's start; segments with no words are left out.

Differs: `Transcription` draws its segments itself (the original takes a
function that draws each). The segment takes its text and times as props,
and the handler is `seek`, not `onSeek`.

### Voice Selector

    state voice = {value: "alloy"}

    VoiceSelector voice=voice
      VoiceSelectorTrigger voice=voice
        text chosenName
      VoiceSelectorContent voice=voice title="Choose a voice"
        VoiceSelectorInput voice=voice
        VoiceSelectorList
          VoiceSelectorEmpty "No voice found." voice=voice names=names
          VoiceSelectorGroup heading="Standard"
            VoiceSelectorItem value="alloy" voice=voice name="Alloy"
              VoiceSelectorPreview voice=voice playing=on press=hear("alloy")
              VoiceSelectorName "Alloy"
              VoiceSelectorAttributes
                VoiceSelectorGender "non-binary" value="non-binary"
                VoiceSelectorBullet
                VoiceSelectorAccent "american" value="american"
                VoiceSelectorBullet
                VoiceSelectorAge "30s"
              VoiceSelectorDescription "Even and clear"
              VoiceSelectorShortcut "⌘1"
          VoiceSelectorSeparator

The record: `value`; and `open`, `search`.

| part | props | |
|---|---|---|
| `VoiceSelectorTrigger` | `voice` | opens the window |
| `VoiceSelectorContent`, `VoiceSelectorDialog` | `voice`, `title` | the same modal window under two names; Escape and a press outside close it |
| `VoiceSelectorInput` | `voice`, `placeholder` | narrows the items |
| `VoiceSelectorEmpty` | `voice`, `names` | shown when no name holds the search |
| `VoiceSelectorGroup` | `heading` | |
| `VoiceSelectorItem` | `value`, `voice`, `name` (what the search looks in) | a press, Enter or Space chooses it and closes the window |
| `VoiceSelectorGender` | `value` male \| female \| transgender \| androgyne \| non-binary \| intersex | an icon for each |
| `VoiceSelectorAccent` | `value` (american, british, australian, canadian, irish, scottish, indian, south-african, new-zealand, french, german, italian, spanish, portuguese, brazilian, mexican, argentinian, japanese, chinese, korean, russian, arabic, dutch, swedish, norwegian, danish, finnish, polish, turkish, greek) | a chip with its flag |
| `VoiceSelectorPreview` | `playing`, `loading`, `press`, `voice` | inside an item give it `voice`, so a press on it is not also a choice |
| `VoiceSelectorName`, `Age`, `Description`, `Attributes`, `Bullet`, `Shortcut`, `Separator` | | |

Differs: the items hide themselves by the search (the original's cmdk
scores them), so `VoiceSelectorEmpty` needs the names. Arrow keys do not
move through the list (Tab does). `VoiceSelectorShortcut` is a label: the
page binds the key.

## Utilities

### Image

    Image base64=picture.base64 mediaType="image/png" alt="A lighthouse"
    Image uint8Array=pngBytes mediaType="image/png" alt="A lighthouse"

The AI SDK's generated image: `base64` with `mediaType`, or the bytes as
`uint8Array`. `Image` is free: Mote's own tag is `image`, lowercase.

### Open In Chat

    OpenIn query=question
      OpenInTrigger
      OpenInContent
        OpenInLabel "Open in"
        OpenInChatGPT query=question
        OpenInClaude query=question
        OpenInT3 query=question
        OpenInScira query=question
        OpenInv0 query=question
        OpenInCursor query=question
        OpenInSeparator
        OpenInItem href="https://example.com"
          text "Somewhere else"

Each is a link that opens in a new tab, the query percent-encoded:

| | |
|---|---|
| `OpenInChatGPT` | `https://chatgpt.com/?hints=search&prompt=` |
| `OpenInClaude` | `https://claude.ai/new?q=` |
| `OpenInT3` | `https://t3.chat/new?q=` |
| `OpenInScira` | `https://scira.ai/?q=` |
| `OpenInv0` | `https://v0.app?q=` |
| `OpenInCursor` | `https://cursor.com/link/prompt?text=` |

`OpenInTrigger label=` ("Open in chat").

Differs: each link takes `query` itself. A lettered roundel stands for each
app, not its logo. `OpenInItem` takes an `href`. The menu is a `popover`
written under `OpenIn`: Tab moves through it, not the arrow keys.

## Every part

| family | parts | |
|---|---|---|
| Conversation | Conversation, ConversationContent, ConversationEmptyState, ConversationScrollButton, ConversationDownload | done |
| Question | Question, QuestionPrompt, QuestionDescription, QuestionOptions, QuestionOption, QuestionInput, QuestionActions, QuestionSubmit | done |
| Shimmer | Shimmer | done, but not for reduced motion (no way to say it in Mote) |
| Artifact | Artifact, ArtifactHeader, ArtifactTitle, ArtifactDescription, ArtifactActions, ArtifactAction, ArtifactClose, ArtifactContent | done |
| Commit | Commit, CommitHeader, CommitAuthor, CommitAuthorAvatar, CommitInfo, CommitMessage, CommitMetadata, CommitHash, CommitSeparator, CommitTimestamp, CommitActions, CommitCopyButton, CommitContent, CommitFiles, CommitFile, CommitFileInfo, CommitFileStatus, CommitFileIcon, CommitFilePath, CommitFileChanges, CommitFileAdditions, CommitFileDeletions | done |
| Environment Variables | EnvironmentVariables, EnvironmentVariablesHeader, EnvironmentVariablesTitle, EnvironmentVariablesToggle, EnvironmentVariablesContent, EnvironmentVariable, EnvironmentVariableGroup, EnvironmentVariableName, EnvironmentVariableValue, EnvironmentVariableCopyButton, EnvironmentVariableRequired | done |
| JSX Preview | HtmlPreview; JSXPreview, JSXPreviewContent, JSXPreviewError | done as an HTML preview; JSX itself left out (React only) |
| Package Info | PackageInfo, PackageInfoHeader, PackageInfoName, PackageInfoChangeType, PackageInfoVersion, PackageInfoDescription, PackageInfoContent, PackageInfoDependencies, PackageInfoDependency | done |
| Sandbox | Sandbox, SandboxHeader, SandboxContent, SandboxTabs, SandboxTabsBar, SandboxTabsList, SandboxTabsTrigger, SandboxTabContent | done |
| Schema Display | SchemaDisplay, SchemaDisplayHeader, SchemaDisplayMethod, SchemaDisplayPath, SchemaDisplayDescription, SchemaDisplayContent, SchemaDisplayParameters, SchemaDisplayParameter, SchemaDisplayRequest, SchemaDisplayResponse, SchemaDisplayProperty, SchemaDisplayExample | done |
| Snippet | Snippet, SnippetAddon, SnippetText, SnippetInput, SnippetCopyButton | done |
| Web Preview | WebPreview, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl, WebPreviewBody, WebPreviewConsole; and WebPreviewDeviceButtons, WebPreviewFullscreenButton | done; the frame is not sandboxed |
| Audio Player | AudioPlayer, AudioPlayerElement, AudioPlayerControlBar, AudioPlayerPlayButton, AudioPlayerSeekBackwardButton, AudioPlayerSeekForwardButton, AudioPlayerTimeDisplay, AudioPlayerTimeRange, AudioPlayerDurationDisplay, AudioPlayerMuteButton, AudioPlayerVolumeRange | done, over the page's mixer, not `<audio>` |
| Mic Selector | MicSelector, MicSelectorTrigger, MicSelectorValue, MicSelectorContent, MicSelectorInput, MicSelectorList, MicSelectorEmpty, MicSelectorItem, MicSelectorLabel | done |
| Persona | Persona | done, with artwork of Mote's own |
| Speech Input | SpeechInput | done; no recording fallback |
| Transcription | Transcription, TranscriptionSegment | done |
| Voice Selector | VoiceSelector, VoiceSelectorTrigger, VoiceSelectorContent, VoiceSelectorDialog, VoiceSelectorInput, VoiceSelectorList, VoiceSelectorEmpty, VoiceSelectorGroup, VoiceSelectorItem, VoiceSelectorSeparator, VoiceSelectorName, VoiceSelectorGender, VoiceSelectorAccent, VoiceSelectorAge, VoiceSelectorDescription, VoiceSelectorAttributes, VoiceSelectorBullet, VoiceSelectorShortcut, VoiceSelectorPreview | done |
| Image | Image | done |
| Open In Chat | OpenIn, OpenInTrigger, OpenInContent, OpenInChatGPT, OpenInClaude, OpenInT3, OpenInScira, OpenInv0, OpenInCursor, OpenInItem, OpenInLabel, OpenInSeparator | done |

Left out everywhere, because they are React's: `className` (styles written
on a component land on its first element), `asChild`, `ref`, `children` as
a function, `defaultValue` / `onValueChange` pairs (the value is the page's
state), `onCopy` / `onError` callbacks, and the hooks (`useAudioDevices`,
`useVoiceSelector`, …).

Helpers this file adds, named so as not to be mistaken for anything else:
`AiKitIconButton`, `AiKitCopyButton`, `AiKitStateBadge`,
`AiKitSchemaSection`, `AiKitWebFrame`, `AiKitAudioButton`,
`AiKitOpenInLink`.
