Action Composer
Install the component, then paste your configured usage. Your settings are included in the code below.
npx arclen-ui add action-composer --settings eyJ0aGVtZSI6ImRhcmsiLCJwbGFjZWhvbGRlciI6IlN0YXJ0IHdpdGggYSB0aG91Z2h04oCmIiwibW9kZWwiOiJoZWxpdW0iLCJhY3Rpb25MYWJlbHMiOlsiQ3JlYXRlIGltYWdlIiwiQ3JlYXRlIGRvYyIsIkNyZWF0ZSBzbGlkZXMiLCJBbmFseXplIGRvYyIsIkNyZWF0ZSBjaGFydCJdLCJ2b2ljZVNhbXBsZSI6Ik1lZXQgbWUgYXQgdGhlIHBpZXIgb24gRnJpZGF5LiBCcmluZyB0aGUgc2tldGNoZXMgZnJvbSB0aGUgbGFzdCB3YWxrLiIsImFjY2VudCI6IiNmNTRlMDAiLCJjYXJkRmluaXNoIjoic2F0aW4iLCJmYW5TaXplIjo4NiwiZmFuVHVjayI6OSwiYXJ0U3RyZW5ndGgiOjcyLCJpbWFnZUFydFNpemUiOjkwLCJpbWFnZUFydFgiOjAsImltYWdlQXJ0WSI6MCwiaW1hZ2VBcnRTaGFkb3dPcGFjaXR5IjoxOCwiaW1hZ2VBcnRTaGFkb3dCbHVyIjoyLCJpbWFnZUFydFNoYWRvd1giOjAsImltYWdlQXJ0U2hhZG93WSI6MS41LCJpbWFnZUFydFNoYWRvd0NvbG9yIjoiIzIwMjYzNyIsIm5vdGVBcnRTaXplIjo5MCwibm90ZUFydFgiOjAsIm5vdGVBcnRZIjowLCJub3RlQXJ0U2hhZG93T3BhY2l0eSI6MTgsIm5vdGVBcnRTaGFkb3dCbHVyIjoyLCJub3RlQXJ0U2hhZG93WCI6MCwibm90ZUFydFNoYWRvd1kiOjEuNSwibm90ZUFydFNoYWRvd0NvbG9yIjoiIzIwMjYzNyIsImV2ZW50QXJ0U2l6ZSI6OTAsImV2ZW50QXJ0WCI6MCwiZXZlbnRBcnRZIjowLCJldmVudEFydFNoYWRvd09wYWNpdHkiOjE4LCJldmVudEFydFNoYWRvd0JsdXIiO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YW1Db2xvckEiOiIjZmY3NzFhIiwiYmVhbUNvbG9yQiI6IiNkMTUyZmYiLCJiZWFtU3BlZWQiOjAuNDUsImJlYW1CcmVhdGhTcGVlZCI6Mi4yLCJiZWFtUHVsc2VEZXB0aCI6MjksImZhblRpbHQiOjEwMCwicGFwZXJQYWxldHRlIjoiYXJjbGVuIiwic3VibWl0T25FbnRlciI6dHJ1ZX0import { ActionComposer } from "@/components/action-composer";
export default function Example() {
return <ActionComposer {...{
"theme": "dark",
"placeholder": "Start with a thought…",
"model": "helium",
"actionLabels": [
"Create image",
"Create doc",
"Create slides",
"Analyze doc",
"Create chart"
],
"voiceSample": "Meet me at the pier on Friday. Bring the sketches from the last walk.",
"accent": "#f54e00",
"cardFinish": "satin",
"fanSize": 86,
"fanTuck": 9,
"artStrength": 72,
"imageArtSize": 90,
"imageArtX": 0,
"imageArtY": 0,
"imageArtShadowOpacity": 18,
"imageArtShadowBlur": 2,
"imageArtShadowX": 0,
"imageArtShadowY": 1.5,
"imageArtShadowColor": "#202637",
"noteArtSize": 90,
"noteArtX": 0,
"noteArtY": 0,
"noteArtShadowOpacity": 18,
"noteArtShadowBlur": 2,
"noteArtShadowX": 0,
"noteArtShadowY": 1.5,
"noteArtShadowColor": "#202637",
"eventArtSize": 90,
"eventArtX": 0,
"eventArtY": 0,
"eventArtShadowOpacity": 18,
"eventArtShadowBlur": 2,
"eventArtShadowX": 0,
"eventArtShadowY": 1.5,
"eventArtShadowColor": "#202637",
"voiceArtSize": 90,
"voiceArtX": 0,
"voiceArtY": 0,
"voiceArtShadowOpacity": 18,
"voiceArtShadowBlur": 2,
"voiceArtShadowX": 0,
"voiceArtShadowY": 1.5,
"voiceArtShadowColor": "#202637",
"docsArtSize": 90,
"docsArtX": 0,
"docsArtY": 0,
"docsArtShadowOpacity": 18,
"docsArtShadowBlur": 2,
"docsArtShadowX": 0,
"docsArtShadowY": 1.5,
"docsArtShadowColor": "#202637",
"fanTravel": 152,
"fanSpread": 100,
"fanStagger": 45,
"motionSpeed": 1,
"inputRadius": 52,
"shellShape": "adjustable",
"shellWidth": 634,
"shellHeight": 50,
"shellPadding": 8,
"controlGap": 6,
"promptSize": 14.5,
"shellLight": "#ffffff",
"shellDark": "#2a2a2a",
"buttonFinish": "raised",
"menuWidth": 244,
"menuRadius": 12,
"menuRowHeight": 42,
"menuPadding": 6,
"menuGap": 6,
"chipHeight": 28,
"chipRadius": 14,
"chipTypeSize": 12,
"plusSize": 32,
"plusIconSize": 16,
"plusRadius": 24,
"plusCustomColors": false,
"plusFill": "#f1f1f1",
"plusInk": "#171717",
"modelSize": 32,
"modelIconSize": 14,
"modelRadius": 54,
"modelCustomColors": false,
"modelFill": "#f1f1f1",
"modelInk": "#171717",
"voiceSize": 32,
"voiceIconSize": 16,
"voiceRadius": 24,
"voiceCustomColors": false,
"voiceFill": "#f1f1f1",
"voiceInk": "#171717",
"sendSize": 32,
"sendIconSize": 16,
"sendRadius": 24,
"sendCustomColors": false,
"sendFill": "#ffffff",
"sendInk": "#0d0d0d",
"cancelSize": 32,
"cancelIconSize": 16,
"cancelRadius": 10,
"cancelCustomColors": false,
"cancelFill": "#f1f1f1",
"cancelInk": "#171717",
"stopSize": 32,
"stopIconSize": 16,
"stopRadius": 24,
"stopCustomColors": false,
"stopFill": "#ff453a",
"stopInk": "#ffffff",
"modelTypeSize": 12,
"showModelName": true,
"disabledSendOpacity": 100,
"focusBeam": 60,
"beamColorA": "#ff771a",
"beamColorB": "#d152ff",
"beamSpeed": 0.45,
"beamBreathSpeed": 2.2,
"beamPulseDepth": 29,
"fanTilt": 100,
"paperPalette": "arclen",
"submitOnEnter": true
}} />;
}| Property | Type | Default |
|---|---|---|
themeTheme Options: dark (Graphite), light (Ivory) | select | "light" |
placeholderPrompt placeholder Up to 120 characters | text | "Start with a thought…" |
modelInitial model Options: helium (Helium), silicon (Silicon), neon (Neon), titanium (Titanium), carbon (Carbon), argon (Argon) | select | "helium" |
actionLabelsAction labels Minimum 5 itemsMaximum 5 itemsUp to 24 characters per item | string-list | ["Create image","Create doc","Create slides","Analyze doc","Create chart"] |
voiceSampleDemo transcript Up to 240 characters | text | "Meet me at the pier on Friday. Bring the sketches from the last walk." |
accentControl accent | color | "#f54e00" |
cardFinishCard finish Options: satin (Satin paper), smooth (Smooth) | select | "satin" |
fanSizeCard fan size (%) 75–100Step 1 | number | 86 |
fanTuckCard tuck at full width (px) 0–20Step 1 | number | 9 |
artStrengthIllustration ink (%) 30–100Step 1 | number | 72 |
imageArtSizeArtwork size (%) 50–140Step 1 | number | 90 |
imageArtXHorizontal position (%) -35–35Step 1 | number | 0 |
imageArtYVertical position (%) -35–35Step 1 | number | 0 |
imageArtShadowOpacityShadow opacity (%) 0–100Step 1 | number | 18 |
imageArtShadowBlurShadow blur (px) 0–10Step 0.5 | number | 2 |
imageArtShadowXShadow horizontal offset (px) -10–10Step 0.5 | number | 0 |
imageArtShadowYShadow vertical offset (px) -10–10Step 0.5 | number | 1.5 |
imageArtShadowColorShadow color | color | "#202637" |
noteArtSizeArtwork size (%) 50–140Step 1 | number | 90 |
noteArtXHorizontal position (%) -35–35Step 1 | number | 0 |
noteArtYVertical position (%) -35–35Step 1 | number | 0 |
noteArtShadowOpacityShadow opacity (%) 0–100Step 1 | number | 18 |
noteArtShadowBlurShadow blur (px) 0–10Step 0.5 | number | 2 |
noteArtShadowXShadow horizontal offset (px) -10–10Step 0.5 | number | 0 |
noteArtShadowYShadow vertical offset (px) -10–10Step 0.5 | number | 1.5 |
noteArtShadowColorShadow color | color | "#202637" |
eventArtSizeArtwork size (%) 50–140Step 1 | number | 90 |
eventArtXHorizontal position (%) -35–35Step 1 | number | 0 |
eventArtYVertical position (%) -35–35Step 1 | number | 0 |
eventArtShadowOpacityShadow opacity (%) 0–100Step 1 | number | 18 |
eventArtShadowBlurShadow blur (px) 0–10Step 0.5 | number | 2 |
eventArtShadowXShadow horizontal offset (px) -10–10Step 0.5 | number | 0 |
eventArtShadowYShadow vertical offset (px) -10–10Step 0.5 | number | 1.5 |
eventArtShadowColorShadow color | color | "#202637" |
voiceArtSizeArtwork size (%) 50–140Step 1 | number | 90 |
voiceArtXHorizontal position (%) -35–35Step 1 | number | 0 |
voiceArtYVertical position (%) -35–35Step 1 | number | 0 |
voiceArtShadowOpacityShadow opacity (%) 0–100Step 1 | number | 18 |
voiceArtShadowBlurShadow blur (px) 0–10Step 0.5 | number | 2 |
voiceArtShadowXShadow horizontal offset (px) -10–10Step 0.5 | number | 0 |
voiceArtShadowYShadow vertical offset (px) -10–10Step 0.5 | number | 1.5 |
voiceArtShadowColorShadow color | color | "#202637" |
docsArtSizeArtwork size (%) 50–140Step 1 | number | 90 |
docsArtXHorizontal position (%) -35–35Step 1 | number | 0 |
docsArtYVertical position (%) -35–35Step 1 | number | 0 |
docsArtShadowOpacityShadow opacity (%) 0–100Step 1 | number | 18 |
docsArtShadowBlurShadow blur (px) 0–10Step 0.5 | number | 2 |
docsArtShadowXShadow horizontal offset (px) -10–10Step 0.5 | number | 0 |
docsArtShadowYShadow vertical offset (px) -10–10Step 0.5 | number | 1.5 |
docsArtShadowColorShadow color | color | "#202637" |
fanTravelRetraction at full width (px) 140–220Step 1 | number | 152 |
fanSpreadSpread (%) 66–108Step 1 | number | 100 |
fanStaggerReturn stagger (ms) 0–80Step 1 | number | 45 |
motionSpeedFan speed (×) 0.5–2Step 0.05 | number | 1 |
inputRadiusInput corner radius (px) 0–64Step 1 | number | 52 |
shellShapeShell shape Options: adjustable (Adjustable radius), pill (Always pill), square (Square) | select | "adjustable" |
shellWidthMaximum shell width (px) 260–1000Step 1 | number | 634 |
shellHeightShell height (px) 40–80Step 1 | number | 50 |
shellPaddingHorizontal padding (px) 4–20Step 1 | number | 8 |
controlGapControl spacing (px) 2–14Step 1 | number | 6 |
promptSizePrompt type size (px) 11–20Step 0.5 | number | 14.5 |
shellLightLight shell fill | color | "#ffffff" |
shellDarkDark shell fill | color | "#2a2a2a" |
buttonFinishButton finish Options: raised (Raised), flat (Flat), outline (Hairline) | select | "raised" |
menuWidthPopup width (px) 160–340Step 1 | number | 244 |
menuRadiusPopup radius (px) 0–26Step 1 | number | 12 |
menuRowHeightMinimum option height (px) 34–58Step 1 | number | 42 |
menuPaddingPopup padding (px) 2–14Step 1 | number | 6 |
menuGapPopup offset (px) 2–16Step 1 | number | 6 |
chipHeightChip height (px) 20–40Step 1 | number | 28 |
chipRadiusChip radius (px) 0–24Step 1 | number | 14 |
chipTypeSizeChip type size (px) 10–16Step 1 | number | 12 |
plusSizePlus button size (px) 24–44Step 1 | number | 32 |
plusIconSizePlus icon size (px) 12–22Step 1 | number | 16 |
plusRadiusPlus button radius (px) 0–54Step 1 | number | 24 |
plusCustomColorsPlus custom colors | boolean | false |
plusFillPlus button fill | color | "#f1f1f1" |
plusInkPlus icon color | color | "#171717" |
modelSizeModel button size (px) 24–44Step 1 | number | 32 |
modelIconSizeModel icon size (px) 12–22Step 1 | number | 14 |
modelRadiusModel button radius (px) 0–54Step 1 | number | 54 |
modelCustomColorsModel custom colors | boolean | false |
modelFillModel button fill | color | "#f1f1f1" |
modelInkModel icon color | color | "#171717" |
voiceSizeVoice button size (px) 24–44Step 1 | number | 32 |
voiceIconSizeVoice icon size (px) 12–22Step 1 | number | 16 |
voiceRadiusVoice button radius (px) 0–54Step 1 | number | 24 |
voiceCustomColorsVoice custom colors | boolean | false |
voiceFillVoice button fill | color | "#f1f1f1" |
voiceInkVoice icon color | color | "#171717" |
sendSizeSend button size (px) 24–44Step 1 | number | 32 |
sendIconSizeSend icon size (px) 12–22Step 1 | number | 16 |
sendRadiusSend button radius (px) 0–54Step 1 | number | 24 |
sendCustomColorsSend custom colors | boolean | false |
sendFillSend button fill | color | "#ffffff" |
sendInkSend icon color | color | "#0d0d0d" |
cancelSizeCancel button size (px) 24–44Step 1 | number | 32 |
cancelIconSizeCancel icon size (px) 12–22Step 1 | number | 16 |
cancelRadiusCancel button radius (px) 0–54Step 1 | number | 10 |
cancelCustomColorsCancel custom colors | boolean | false |
cancelFillCancel button fill | color | "#f1f1f1" |
cancelInkCancel icon color | color | "#171717" |
stopSizeStop button size (px) 24–44Step 1 | number | 32 |
stopIconSizeStop icon size (px) 12–22Step 1 | number | 16 |
stopRadiusStop button radius (px) 0–54Step 1 | number | 24 |
stopCustomColorsStop custom colors | boolean | false |
stopFillStop button fill | color | "#ff453a" |
stopInkStop icon color | color | "#ffffff" |
modelTypeSizeModel label size (px) 10–16Step 1 | number | 12 |
showModelNameShow model name when space allows | boolean | true |
disabledSendOpacityEmpty send button opacity (%) 20–100Step 1 | number | 100 |
focusBeamFocus beam strength (%) 0–100Step 1 | number | 60 |
beamColorAFirst beam color | color | "#ff771a" |
beamColorBSecond beam color | color | "#d152ff" |
beamSpeedBeam travel speed (×) 0.25–3Step 0.05 | number | 0.45 |
beamBreathSpeedBeam breathing speed (×) 0.25–3Step 0.05 | number | 2.2 |
beamPulseDepthBeam pulse depth (%) 0–100Step 1 | number | 29 |
fanTiltCard tilt (%) 0–165Step 1 | number | 100 |
paperPalettePaper stock Options: arclen (Arclen neutrals), studio (Studio colors), newsprint (Newsprint), blueprint (Blueprint) | select | "arclen" |
submitOnEnterSend on Enter | boolean | true |
Action Composer
Offer five ways to start a prompt. Choose Create image, Create doc, Create slides, Analyze doc, or Create chart to set the prompt hint and action chip. The microphone adds a simulated voice draft to the current prompt.
React
import { ActionComposer } from './components/action-composer';
export function Example() {
return <ActionComposer theme="light" onSend={({ text, intent, model }) => {
console.log(text, intent, model);
}} />;
}Pass theme, placeholder, or model as individual settings. The model setting sets the initial model and applies when the prop changes. The user can select a different model in the meantime. className and style apply to the wrapper, and paused suspends the controls and clock. Component aliases ActionComposer.
Vanilla
import { mount } from './components/action-composer/src/core';
import './components/action-composer/src/styles.css';
const host = document.querySelector<HTMLElement>('#composer')!;
const composer = mount(host, { theme: 'dark' }, undefined, {
onSend(detail) { console.log(detail); },
});
composer.update({ placeholder: 'What do you want to work on?' });
// When removing the host:
composer.destroy();The bubbling action-composer-send event carries the same { text, action, intent, model } payload as the callback. action is null when composing without a quick action. Listen to one delivery channel per application action. An application handles the submitted prompt itself.
Keyboard and voice
Tab through the quick actions and form controls. Enter sends a nonempty prompt, Shift+Enter inserts a new line, and composition input keeps its own Enter key. Sending clears the draft and opens the tray. Removing the action chip keeps the draft.
Cancel or Escape restores the prior draft and action tray. Stop writes the local sample into the field a few words at a time. The field is read-only until the last word arrives, then it regains focus and Send becomes available. The demo runs locally without recording audio. Reduced motion displays the complete transcript immediately and holds the waveform still.
The plus, selected action chip, prompt, model picker, microphone, and send arrow share one line. Long chip labels truncate and the prompt scrolls. The plus toggles the paper actions. The model picker, voice button, and send arrow sit on the right. The six picker labels are Helium, Silicon, Neon, Titanium, Carbon and Argon. The event carries the lowercase key (for example, silicon). On phones and narrow hosts the picker button shows only the Lucide Brain glyph and retains the selected name for screen readers. Use the arrow keys and Enter to choose a model. Set --ac-stage-height on the wrapper to fit a bounded preview.
Tuning the cards
The default **Satin paper** card finish adds fine grain, a lit upper edge, and a faint tint from each illustration. Lifting a card deepens its shadow. Set cardFinish="smooth" for the plain surface.
fanSize adjusts the footprint of the action fan. The default is 86%, with a 250px minimum width when space allows for the labels. Illustration ink defaults to 72%. fanTuck drops the cards behind the fixed pill by up to 20px. The default is 9px at 634px composer width and scales down on narrower screens. Set it to 0 to restore the earlier vertical position.
fanSpread adjusts card spacing and tilt together. fanTravel sets the distance a card retracts at full field width. The distance scales with the host. fanStagger sets the delay in milliseconds between returning cards. motionSpeed scales the spring’s response and the delay. The cards retain their velocity if you toggle midway. Reduced motion goes directly to the final arrangement.
The five cards carry code-drawn SVG illustrations: a palette and brush, a document with a pencil, a slide deck, a magnifier over a document, and a bar chart. Each instance owns its gradient IDs. Set artStrength to change illustration opacity and accent to tint active controls. Supply five actionLabels in image, note, event, voice, document order. The event retains the original slot keys in action and includes an intent for routing: create-image, create-doc, create-slides, analyze-doc, or create-chart. A freeform prompt has a null intent. Connect the send handler to your app to execute the selected task. voiceSample supplies the text for simulated recording.
inputRadius defaults to 52px, giving the default 50px-tall shell fully rounded ends. Set the shell width, height, padding, spacing and prompt type size in Composer shell. Adjustable radius follows the radius slider. Always pill and Square fix the end shape. When a control inside the prompt pill has focus, orange (#ff771a) and violet (#d152ff) highlights drift around the edge at 0.45× by default, taking about 21.3 seconds per lap. Set the two glow colors with beamColorA and beamColorB. Adjust beamSpeed between 0.25× and 3×. Set beamBreathSpeed independently between 0.25× and 3×. The default 2.2× breathing speed gives a cycle of about 2.18 seconds. beamPulseDepth sets the percentage drop from peak to trough, with 29% as the default and 0% for steady travel. The glow spreads farther in light mode and stays close to the edge in dark mode. Adjust focusBeam from 0 to 100 to set its strength (default 60%). Reduced motion keeps the colors still. fanTilt scales card angles independently of their spacing. At 0% the cards sit straight and still retract. paperPalette defaults to Arclen neutrals, using the same shell, inset and ink colors as Quick Find. Studio colors, warm Newsprint and cool Blueprint are also available. The default card tilt is 100%.
With submitOnEnter={false}, Enter inserts a line break and the Send button submits the draft. Set it to true to restore Enter-to-send. The text field advertises the selected action to mobile keyboards.
Each action has an artwork group. Size defaults to 90%, with 100% restoring the previous size. Position offsets are percentages of the illustration box. Shadow color, opacity, blur, and horizontal and vertical offsets affect the illustration itself. Zero opacity removes the cast shadow. For example, noteArtSize={80}, noteArtY={-4}, and noteArtShadowOpacity={15} adjust the Create doc illustration while the other four keep their settings. Custom action labels retain their original artwork controls.
Control styling
Plus, Model, Voice, Send, Cancel and Stop each have controls for button size, icon size and corner radius. Enable custom colors for a button to apply its fill and icon colors. Send uses those colors when a draft is ready. Set its empty-state opacity separately. Cancel and Stop appear in the voice draft view. The button finish setting applies raised, flat or hairline styling across the controls.
The Model popup group controls width, radius, option height, padding and offset. The Action chip group controls height, radius and type size. At narrow widths the model label collapses and button sizes fit the available space.
Icon credits
Functional icons come from Lucide. The bundled license includes the ISC and Feather MIT notices. Lucide
The model menu drops below its button. The five illustrated action cards fan upward. Use the arrow keys to move through models and Escape to return focus to the trigger.
The preview runs the component’s own JavaScript. It respects reduced motion and pauses when off screen. The HTML bundle includes a static fallback.
Every setting in this panel comes from the component manifest. Preview size, pause and replay stay in the inspector.