@agent-ui-kit/web-components 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-ui.css +1 -1
- package/dist/api.colors.json +2 -2
- package/dist/api.colors.yaml +2 -2
- package/dist/api.components.json +4570 -1641
- package/dist/api.tokens.json +34 -2
- package/dist/api.tokens.yaml +26 -2
- package/dist/chunks/{agent-C72JZNe6.js → agent-BF_R_HJk.js} +65 -61
- package/dist/chunks/{agent-C72JZNe6.js.map → agent-BF_R_HJk.js.map} +1 -1
- package/dist/chunks/{empty-state-5M3uR5CM.js → meter-Dju8ik6C.js} +1169 -934
- package/dist/chunks/meter-Dju8ik6C.js.map +1 -0
- package/dist/components/agent.js +6 -6
- package/dist/components/avatar/avatar.d.ts +0 -0
- package/dist/components/badge/badge.d.ts +0 -0
- package/dist/components/bar/bar.d.ts +0 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +0 -0
- package/dist/components/code/code.d.ts +0 -0
- package/dist/components/color-area/color-area.d.ts +2 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -0
- package/dist/components/color-picker/oklch-utils.d.ts +18 -0
- package/dist/components/color-slider/color-slider.d.ts +1 -1
- package/dist/components/color-swatch/color-swatch.d.ts +0 -0
- package/dist/components/content/content.d.ts +0 -0
- package/dist/components/description-list/description-list.d.ts +0 -0
- package/dist/components/divider/divider.d.ts +0 -0
- package/dist/components/editor.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +0 -0
- package/dist/components/footer/footer.d.ts +0 -0
- package/dist/components/graph.js +1 -1
- package/dist/components/grid/grid.d.ts +0 -0
- package/dist/components/header/header.d.ts +0 -0
- package/dist/components/heading/heading.d.ts +0 -0
- package/dist/components/input-group/input-group.d.ts +0 -0
- package/dist/components/inset/inset.d.ts +0 -0
- package/dist/components/kbd/kbd.d.ts +0 -0
- package/dist/components/stack/stack.d.ts +0 -0
- package/dist/components/stat/stat.d.ts +4 -0
- package/dist/components/text/text.d.ts +0 -0
- package/dist/components/time-field/time-field.d.ts +1 -0
- package/dist/components/wrap/wrap.d.ts +0 -0
- package/dist/components.js +114 -127
- package/dist/components.js.map +1 -1
- package/dist/docs/blocks/login-two-column.yaml +6 -6
- package/dist/docs/blocks/profile-card.yaml +5 -5
- package/dist/docs/components/accordion-item.yaml +13 -21
- package/dist/docs/components/accordion.yaml +23 -29
- package/dist/docs/components/agent-activity.yaml +27 -39
- package/dist/docs/components/agent-feed.yaml +15 -22
- package/dist/docs/components/agent-input.yaml +238 -0
- package/dist/docs/components/agent-message.yaml +29 -48
- package/dist/docs/components/agent-panel.yaml +21 -24
- package/dist/docs/components/agent-prompt.yaml +28 -46
- package/dist/docs/components/agent-seeds.yaml +15 -23
- package/dist/docs/components/agent-text.yaml +14 -24
- package/dist/docs/components/agent-thread.yaml +15 -24
- package/dist/docs/components/alert.yaml +41 -39
- package/dist/docs/components/avatar-group.yaml +72 -45
- package/dist/docs/components/avatar.yaml +99 -0
- package/dist/docs/components/badge.yaml +110 -0
- package/dist/docs/components/bar.yaml +84 -0
- package/dist/docs/components/breadcrumb-item.yaml +8 -17
- package/dist/docs/components/breadcrumb.yaml +60 -25
- package/dist/docs/components/button-group.yaml +93 -0
- package/dist/docs/components/button.yaml +177 -261
- package/dist/docs/components/calendar-picker.yaml +14 -34
- package/dist/docs/components/calendar-range-picker.yaml +11 -29
- package/dist/docs/components/calendar.yaml +11 -29
- package/dist/docs/components/canvas.yaml +44 -61
- package/dist/docs/components/checkbox.yaml +37 -49
- package/dist/docs/components/chip.yaml +88 -54
- package/dist/docs/components/code-block.yaml +54 -53
- package/dist/docs/components/code.yaml +37 -0
- package/dist/docs/components/color-area.yaml +119 -0
- package/dist/docs/components/color-field.yaml +121 -0
- package/dist/docs/components/color-picker.yaml +64 -38
- package/dist/docs/components/color-slider.yaml +153 -0
- package/dist/docs/components/color-swatch.yaml +98 -0
- package/dist/docs/components/command.yaml +13 -18
- package/dist/docs/components/container.yaml +83 -73
- package/dist/docs/components/content.yaml +100 -0
- package/dist/docs/components/context-menu.yaml +11 -20
- package/dist/docs/components/date-field.yaml +81 -33
- package/dist/docs/components/description-list.yaml +81 -0
- package/dist/docs/components/disclosure-group.yaml +61 -42
- package/dist/docs/components/disclosure.yaml +60 -46
- package/dist/docs/components/divider.yaml +63 -0
- package/dist/docs/components/dropdown-menu.yaml +16 -25
- package/dist/docs/components/feed.yaml +15 -24
- package/dist/docs/components/field.yaml +50 -71
- package/dist/docs/components/fieldset.yaml +92 -0
- package/dist/docs/components/footer.yaml +147 -0
- package/dist/docs/components/grid.yaml +87 -0
- package/dist/docs/components/gripper.yaml +11 -23
- package/dist/docs/components/header.yaml +168 -0
- package/dist/docs/components/heading.yaml +54 -0
- package/dist/docs/components/hover-card.yaml +17 -25
- package/dist/docs/components/icon.yaml +32 -65
- package/dist/docs/components/input-group.yaml +102 -0
- package/dist/docs/components/input-otp.yaml +20 -19
- package/dist/docs/components/input.yaml +92 -132
- package/dist/docs/components/inset.yaml +59 -0
- package/dist/docs/components/kbd.yaml +57 -0
- package/dist/docs/components/link.yaml +36 -45
- package/dist/docs/components/meter.yaml +27 -38
- package/dist/docs/components/nav-item.yaml +51 -40
- package/dist/docs/components/noodles.yaml +72 -104
- package/dist/docs/components/option.yaml +12 -23
- package/dist/docs/components/pagination.yaml +21 -18
- package/dist/docs/components/pane.yaml +18 -32
- package/dist/docs/components/panes.yaml +19 -27
- package/dist/docs/components/progress-circle.yaml +64 -55
- package/dist/docs/components/progress.yaml +35 -51
- package/dist/docs/components/radio-group.yaml +99 -40
- package/dist/docs/components/radio.yaml +40 -41
- package/dist/docs/components/range.yaml +24 -27
- package/dist/docs/components/segmented-control.yaml +58 -17
- package/dist/docs/components/select.yaml +80 -100
- package/dist/docs/components/skeleton.yaml +39 -39
- package/dist/docs/components/sparkline.yaml +28 -45
- package/dist/docs/components/spinner.yaml +32 -33
- package/dist/docs/components/stack.yaml +126 -0
- package/dist/docs/components/stepper.yaml +31 -38
- package/dist/docs/components/switch.yaml +36 -47
- package/dist/docs/components/tab-panel.yaml +27 -18
- package/dist/docs/components/tab.yaml +25 -22
- package/dist/docs/components/table-header.yaml +22 -12
- package/dist/docs/components/tabs.yaml +103 -20
- package/dist/docs/components/tag-group.yaml +63 -47
- package/dist/docs/components/text.yaml +67 -0
- package/dist/docs/components/textarea.yaml +43 -60
- package/dist/docs/components/time-field.yaml +74 -33
- package/dist/docs/components/toast.yaml +13 -30
- package/dist/docs/components/tooltip.yaml +56 -49
- package/dist/docs/components/tree-item.yaml +9 -10
- package/dist/docs/components/tree.yaml +127 -10
- package/dist/docs/components/wrap.yaml +60 -0
- package/dist/docs/traits/toggle-theme.yaml +34 -0
- package/dist/element.js +1 -1
- package/dist/icons.js +79 -59
- package/dist/icons.js.map +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/register.d.ts +0 -1
- package/dist/register.js +258 -244
- package/dist/register.js.map +1 -1
- package/dist/store.js +1 -1
- package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
- package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
- package/dist/traits.js +528 -485
- package/dist/traits.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
|
@@ -2,73 +2,67 @@ name: aui-accordion
|
|
|
2
2
|
tag: aui-accordion
|
|
3
3
|
type: component
|
|
4
4
|
summary: Collapsible section group with optional single-open mode.
|
|
5
|
-
description:
|
|
6
|
-
Container for aui-accordion-item children. By default, only one
|
|
7
|
-
item can be open at a time. Set `multiple` to allow several.
|
|
8
|
-
|
|
5
|
+
description: |
|
|
6
|
+
Container for aui-accordion-item children. By default, only one item can be open at a time. Set `multiple` to allow several.
|
|
9
7
|
base: AgentElement
|
|
10
|
-
|
|
11
8
|
attributes:
|
|
12
9
|
multiple:
|
|
13
10
|
syntax: boolean
|
|
14
11
|
type: boolean
|
|
15
12
|
default: false
|
|
16
13
|
description: Allow multiple items open simultaneously.
|
|
17
|
-
|
|
18
14
|
caret:
|
|
19
15
|
syntax: key-value
|
|
20
16
|
type: enum
|
|
21
|
-
values:
|
|
17
|
+
values:
|
|
18
|
+
- leading
|
|
19
|
+
- trailing
|
|
22
20
|
default: leading
|
|
23
|
-
description:
|
|
24
|
-
Position of the expand/collapse chevron.
|
|
25
|
-
Leading places it before the label, trailing after.
|
|
26
|
-
|
|
21
|
+
description: |
|
|
22
|
+
Position of the expand/collapse chevron. Leading places it before the label, trailing after.
|
|
27
23
|
composition:
|
|
28
|
-
parents:
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
parents:
|
|
25
|
+
- any
|
|
26
|
+
children:
|
|
27
|
+
- aui-accordion-item
|
|
31
28
|
tokens:
|
|
32
29
|
- name: --aui-accordion-border-color
|
|
33
30
|
default: var(--aui-border-muted)
|
|
34
31
|
description: Border color of the accordion container top border and item dividers.
|
|
35
|
-
|
|
36
32
|
examples:
|
|
37
|
-
-
|
|
33
|
+
- description: Single-open accordion
|
|
34
|
+
html: |-
|
|
38
35
|
<aui-accordion>
|
|
39
36
|
<aui-accordion-item>
|
|
40
37
|
<span data-trigger>Section 1</span>
|
|
41
|
-
<
|
|
38
|
+
<aui-text>Content 1</aui-text>
|
|
42
39
|
</aui-accordion-item>
|
|
43
40
|
<aui-accordion-item>
|
|
44
41
|
<span data-trigger>Section 2</span>
|
|
45
|
-
<
|
|
42
|
+
<aui-text>Content 2</aui-text>
|
|
46
43
|
</aui-accordion-item>
|
|
47
44
|
</aui-accordion>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
- html: |
|
|
45
|
+
- description: Multiple-open accordion
|
|
46
|
+
html: |-
|
|
51
47
|
<aui-accordion multiple>
|
|
52
48
|
<aui-accordion-item open>
|
|
53
49
|
<span data-trigger>FAQ 1</span>
|
|
54
|
-
<
|
|
50
|
+
<aui-text>Answer 1</aui-text>
|
|
55
51
|
</aui-accordion-item>
|
|
56
52
|
<aui-accordion-item open>
|
|
57
53
|
<span data-trigger>FAQ 2</span>
|
|
58
|
-
<
|
|
54
|
+
<aui-text>Answer 2</aui-text>
|
|
59
55
|
</aui-accordion-item>
|
|
60
56
|
</aui-accordion>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
- html: |
|
|
57
|
+
- description: Trailing caret position
|
|
58
|
+
html: |-
|
|
64
59
|
<aui-accordion caret="trailing">
|
|
65
60
|
<aui-accordion-item open>
|
|
66
61
|
<span data-trigger>Trailing caret</span>
|
|
67
|
-
<
|
|
62
|
+
<aui-text>Chevron on the right side.</aui-text>
|
|
68
63
|
</aui-accordion-item>
|
|
69
64
|
<aui-accordion-item>
|
|
70
65
|
<span data-trigger>Another section</span>
|
|
71
|
-
<
|
|
66
|
+
<aui-text>More content here.</aui-text>
|
|
72
67
|
</aui-accordion-item>
|
|
73
68
|
</aui-accordion>
|
|
74
|
-
description: Trailing caret position.
|
|
@@ -2,54 +2,46 @@ name: aui-agent-activity
|
|
|
2
2
|
tag: aui-agent-activity
|
|
3
3
|
type: component
|
|
4
4
|
summary: Streaming activity indicator with typing dots and elapsed timer.
|
|
5
|
-
description:
|
|
6
|
-
When active, shows an animated indicator with elapsed time.
|
|
7
|
-
When expandable, clicking toggles visibility of slotted trace content
|
|
8
|
-
(e.g. reasoning trace, tool calls).
|
|
9
|
-
|
|
5
|
+
description: |
|
|
6
|
+
When active, shows an animated indicator with elapsed time. When expandable, clicking toggles visibility of slotted trace content (e.g. reasoning trace, tool calls).
|
|
10
7
|
base: AgentElement
|
|
11
|
-
|
|
12
8
|
attributes:
|
|
13
9
|
type:
|
|
14
10
|
syntax: key-value
|
|
15
11
|
type: string
|
|
16
12
|
default: typing
|
|
17
13
|
description: Activity type — typing, thinking, or tool-use.
|
|
18
|
-
|
|
19
14
|
label:
|
|
20
15
|
syntax: key-value
|
|
21
16
|
type: string
|
|
22
17
|
default: ""
|
|
23
18
|
description: Custom label text (overrides default per-type label).
|
|
24
|
-
|
|
25
19
|
active:
|
|
26
20
|
syntax: boolean
|
|
27
21
|
type: boolean
|
|
28
22
|
default: false
|
|
29
23
|
description: Currently streaming / in progress.
|
|
30
|
-
|
|
31
24
|
expandable:
|
|
32
25
|
syntax: boolean
|
|
33
26
|
type: boolean
|
|
34
27
|
default: false
|
|
35
28
|
description: Allow click to expand trace content.
|
|
36
|
-
|
|
37
29
|
expanded:
|
|
38
30
|
syntax: boolean
|
|
39
31
|
type: boolean
|
|
40
32
|
default: false
|
|
41
33
|
description: Whether trace content is visible.
|
|
42
|
-
|
|
43
34
|
events:
|
|
44
35
|
aui:activity-toggle:
|
|
45
|
-
description:
|
|
46
|
-
Fired when trace is expanded/collapsed.
|
|
47
|
-
detail contains expanded boolean.
|
|
48
|
-
|
|
36
|
+
description: |
|
|
37
|
+
Fired when trace is expanded/collapsed. detail contains expanded boolean.
|
|
49
38
|
composition:
|
|
50
|
-
parents:
|
|
51
|
-
|
|
52
|
-
|
|
39
|
+
parents:
|
|
40
|
+
- aui-agent-message
|
|
41
|
+
children:
|
|
42
|
+
- pre
|
|
43
|
+
- div
|
|
44
|
+
- any
|
|
53
45
|
tokens:
|
|
54
46
|
- name: --aui-agent-activity-color
|
|
55
47
|
default: var(--aui-ink-muted)
|
|
@@ -67,10 +59,10 @@ tokens:
|
|
|
67
59
|
default: var(--aui-agent-bubble-pad-inline, 0.875rem)
|
|
68
60
|
description: Inline padding of the activity container.
|
|
69
61
|
- name: --aui-agent-activity-row-gap
|
|
70
|
-
default:
|
|
62
|
+
default: calc(var(--aui-space) * 1.5)
|
|
71
63
|
description: Gap between items in the status row (arrow, label, dots, timer).
|
|
72
64
|
- name: --aui-agent-activity-content-padding-inline-start
|
|
73
|
-
default:
|
|
65
|
+
default: calc(var(--aui-space) * 3)
|
|
74
66
|
description: Left indent of the expandable content area.
|
|
75
67
|
- name: --aui-agent-activity-content-font-family
|
|
76
68
|
default: var(--aui-font-mono, monospace)
|
|
@@ -81,31 +73,27 @@ tokens:
|
|
|
81
73
|
- name: --aui-agent-activity-content-max-height
|
|
82
74
|
default: var(--aui-agent-activity-max-height, 20rem)
|
|
83
75
|
description: Maximum height of the expandable content area before scrolling.
|
|
84
|
-
|
|
85
76
|
examples:
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
-
|
|
91
|
-
|
|
92
|
-
description: Thinking indicator with custom label and elapsed timer — used during extended reasoning or chain-of-thought processing.
|
|
93
|
-
|
|
94
|
-
- html: |
|
|
77
|
+
- description: Typing indicator — animated dots signaling the assistant is composing a response
|
|
78
|
+
html: <aui-agent-activity type="typing" active></aui-agent-activity>
|
|
79
|
+
- description: Thinking indicator with custom label and elapsed timer — used during extended reasoning or chain-of-thought processing
|
|
80
|
+
html: <aui-agent-activity type="thinking" active label="Reasoning"></aui-agent-activity>
|
|
81
|
+
- description: Expandable reasoning trace — completed thinking step with visible chain-of-thought. Click toggles the trace content open/closed
|
|
82
|
+
html: |-
|
|
95
83
|
<aui-agent-activity type="thinking" expandable expanded>
|
|
96
84
|
<div data-role="trace">
|
|
97
|
-
<aui-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
85
|
+
<aui-stack gap="1">
|
|
86
|
+
<aui-text muted size="sm">The user is asking about onboarding drop-off. I should consider:</aui-text>
|
|
87
|
+
<aui-text muted size="sm">1. Funnel analysis — where exactly are users leaving?</aui-text>
|
|
88
|
+
<aui-text muted size="sm">2. Session recordings — qualitative signals</aui-text>
|
|
89
|
+
<aui-text muted size="sm">3. Survey data — self-reported friction points</aui-text>
|
|
90
|
+
<aui-text muted size="sm">Let me structure a response around these three data sources.</aui-text>
|
|
91
|
+
</aui-stack>
|
|
102
92
|
</div>
|
|
103
93
|
</aui-agent-activity>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
- html: |
|
|
94
|
+
- description: Tool-use activity with live trace — shows the tool call and partial results while the operation is in progress
|
|
95
|
+
html: |-
|
|
107
96
|
<aui-agent-activity type="tool-use" active label="Searching codebase" expandable>
|
|
108
97
|
<pre>search_files("auth middleware", include=["*.ts", "*.tsx"])
|
|
109
98
|
→ Found 12 matches in 5 files</pre>
|
|
110
99
|
</aui-agent-activity>
|
|
111
|
-
description: Tool-use activity with live trace — shows the tool call and partial results while the operation is in progress.
|
|
@@ -2,40 +2,35 @@ name: aui-agent-feed
|
|
|
2
2
|
tag: aui-agent-feed
|
|
3
3
|
type: component
|
|
4
4
|
summary: Scrollable chat thread coordinator with auto-scroll and token definitions.
|
|
5
|
-
description:
|
|
6
|
-
Wraps aui-agent-thread groups and manages auto-scroll behavior.
|
|
7
|
-
When pinned to bottom, new content automatically scrolls into view.
|
|
8
|
-
Defines CSS custom properties (tokens) for the entire agent chat system.
|
|
9
|
-
|
|
5
|
+
description: |
|
|
6
|
+
Wraps aui-agent-thread groups and manages auto-scroll behavior. When pinned to bottom, new content automatically scrolls into view. Defines CSS custom properties (tokens) for the entire agent chat system.
|
|
10
7
|
base: AgentElement
|
|
11
|
-
|
|
12
8
|
attributes:
|
|
13
9
|
auto-scroll:
|
|
14
10
|
syntax: boolean
|
|
15
11
|
type: boolean
|
|
16
12
|
default: true
|
|
17
13
|
description: Enable auto-scroll to bottom on new content.
|
|
18
|
-
|
|
19
14
|
scrollable:
|
|
20
15
|
syntax: boolean
|
|
21
16
|
type: boolean
|
|
22
17
|
default: false
|
|
23
18
|
description: Enable scroll container. Remove to delegate scrolling to a parent.
|
|
24
|
-
|
|
25
19
|
a11y:
|
|
26
20
|
role: log
|
|
27
21
|
aria-live: polite
|
|
28
|
-
|
|
29
22
|
events:
|
|
30
23
|
aui:feed-scroll:
|
|
31
|
-
description:
|
|
32
|
-
Fired when scroll pinned state changes.
|
|
33
|
-
detail contains isPinned and scrollTop.
|
|
34
|
-
|
|
24
|
+
description: |
|
|
25
|
+
Fired when scroll pinned state changes. detail contains isPinned and scrollTop.
|
|
35
26
|
composition:
|
|
36
|
-
parents:
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
parents:
|
|
28
|
+
- aui-content
|
|
29
|
+
- aui-pane
|
|
30
|
+
- div
|
|
31
|
+
- any
|
|
32
|
+
children:
|
|
33
|
+
- aui-agent-thread
|
|
39
34
|
tokens:
|
|
40
35
|
- name: --aui-agent-feed-gap
|
|
41
36
|
default: var(--aui-pad-gap-container)
|
|
@@ -43,9 +38,9 @@ tokens:
|
|
|
43
38
|
- name: --aui-agent-feed-padding
|
|
44
39
|
default: var(--aui-pad-container, var(--aui-space))
|
|
45
40
|
description: Padding around the feed container.
|
|
46
|
-
|
|
47
41
|
examples:
|
|
48
|
-
-
|
|
42
|
+
- description: Chat conversation with a user question and an assistant response containing a code block
|
|
43
|
+
html: |-
|
|
49
44
|
<aui-agent-feed auto-scroll scrollable style="height: 24rem;">
|
|
50
45
|
<aui-agent-thread role="user" sender="You">
|
|
51
46
|
<aui-agent-message role="user">
|
|
@@ -72,9 +67,8 @@ examples:
|
|
|
72
67
|
</aui-agent-message>
|
|
73
68
|
</aui-agent-thread>
|
|
74
69
|
</aui-agent-feed>
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
- html: |
|
|
70
|
+
- description: Feed with an active thinking indicator — the assistant is processing the user's question
|
|
71
|
+
html: |-
|
|
78
72
|
<aui-agent-feed auto-scroll scrollable style="height: 20rem;">
|
|
79
73
|
<aui-agent-thread role="user" sender="You">
|
|
80
74
|
<aui-agent-message role="user">
|
|
@@ -88,4 +82,3 @@ examples:
|
|
|
88
82
|
</aui-agent-message>
|
|
89
83
|
</aui-agent-thread>
|
|
90
84
|
</aui-agent-feed>
|
|
91
|
-
description: Feed with an active thinking indicator — the assistant is processing the user's question.
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
name: aui-agent-input
|
|
2
|
+
tag: aui-agent-input
|
|
3
|
+
type: component
|
|
4
|
+
summary: Chat composer surface with textarea, toolbar, selectors, and keyboard shortcuts.
|
|
5
|
+
description: |
|
|
6
|
+
Composer element for agent chat interfaces. Discovers child aui-textarea and submit aui-button[data-submit]. Supports Cmd/Ctrl+Enter to send, auto-clear after send, and busy state that disables submit but keeps textarea active. Typically nested inside aui-content within an aui-container. Composes aui-agent-prompt for the bordered textarea area, aui-select mode="bar" transparent toolbars for actions and model/assistant selectors, aui-wrap for suggestion chips, and aui-stack for vertical grouping.
|
|
7
|
+
base: AgentElement
|
|
8
|
+
attributes:
|
|
9
|
+
disabled:
|
|
10
|
+
syntax: boolean
|
|
11
|
+
type: boolean
|
|
12
|
+
default: false
|
|
13
|
+
description: Disables all interaction.
|
|
14
|
+
busy:
|
|
15
|
+
syntax: boolean
|
|
16
|
+
type: boolean
|
|
17
|
+
default: false
|
|
18
|
+
description: Disables submit but keeps textarea enabled.
|
|
19
|
+
no-enter-submit:
|
|
20
|
+
syntax: boolean
|
|
21
|
+
type: boolean
|
|
22
|
+
default: false
|
|
23
|
+
description: Disables Cmd/Ctrl+Enter key submission.
|
|
24
|
+
no-auto-clear:
|
|
25
|
+
syntax: boolean
|
|
26
|
+
type: boolean
|
|
27
|
+
default: false
|
|
28
|
+
description: Prevents clearing the textarea after send.
|
|
29
|
+
padding:
|
|
30
|
+
syntax: '"0" | "1" | "2" | "3" | "4" | "5" | "6"'
|
|
31
|
+
type: string
|
|
32
|
+
default: null
|
|
33
|
+
description: Inner padding scale token applied to the composer surface.
|
|
34
|
+
gap:
|
|
35
|
+
syntax: '"0" | "1" | "2" | "3" | "4" | "5" | "6"'
|
|
36
|
+
type: string
|
|
37
|
+
default: null
|
|
38
|
+
description: Vertical gap between composer children (prompt, chips, toolbars).
|
|
39
|
+
width:
|
|
40
|
+
syntax: string
|
|
41
|
+
type: string
|
|
42
|
+
default: null
|
|
43
|
+
description: Width constraint, e.g. "full".
|
|
44
|
+
max-width:
|
|
45
|
+
syntax: string
|
|
46
|
+
type: string
|
|
47
|
+
default: null
|
|
48
|
+
description: Maximum width constraint, e.g. "lg", "2xl".
|
|
49
|
+
events:
|
|
50
|
+
aui:send:
|
|
51
|
+
description: |
|
|
52
|
+
Fired on submit with { value } detail. Cancelable.
|
|
53
|
+
aui:composer-focus:
|
|
54
|
+
description: Fired when the composer textarea gains focus.
|
|
55
|
+
aui:composer-blur:
|
|
56
|
+
description: Fired when the composer textarea loses focus.
|
|
57
|
+
aui:composer-submit-blocked:
|
|
58
|
+
description: Fired when submit is attempted while busy.
|
|
59
|
+
composition:
|
|
60
|
+
parents:
|
|
61
|
+
- aui-content
|
|
62
|
+
- aui-footer
|
|
63
|
+
- aui-container
|
|
64
|
+
- div
|
|
65
|
+
- any
|
|
66
|
+
children:
|
|
67
|
+
- aui-agent-prompt
|
|
68
|
+
- aui-stack
|
|
69
|
+
- aui-select
|
|
70
|
+
- aui-wrap
|
|
71
|
+
- aui-inset
|
|
72
|
+
- aui-divider
|
|
73
|
+
- aui-textarea
|
|
74
|
+
- aui-button
|
|
75
|
+
- any
|
|
76
|
+
tokens:
|
|
77
|
+
- name: --aui-agent-input-gap
|
|
78
|
+
default: calc(var(--aui-space) * 4)
|
|
79
|
+
description: Vertical gap between composer children (prompt, chips, toolbars).
|
|
80
|
+
- name: --aui-agent-input-padding
|
|
81
|
+
default: calc(var(--aui-space) * 4)
|
|
82
|
+
description: Padding around the composer surface.
|
|
83
|
+
examples:
|
|
84
|
+
- description: Full advanced composer with header, model selectors, prompt, and suggestion chips
|
|
85
|
+
html: |-
|
|
86
|
+
<aui-container padding="0" max-width="2xl" width="full">
|
|
87
|
+
<aui-header dividers padding="4">
|
|
88
|
+
<span slot="leading"
|
|
89
|
+
><aui-icon name="chat-dots" label="UX Research" hide-label></aui-icon
|
|
90
|
+
></span>
|
|
91
|
+
<span slot="content"><aui-text>Content Title</aui-text></span>
|
|
92
|
+
<span slot="trailing">
|
|
93
|
+
<aui-button ghost label="More options" density="compact" hide-label
|
|
94
|
+
><aui-icon name="dots-three"></aui-icon
|
|
95
|
+
></aui-button>
|
|
96
|
+
</span>
|
|
97
|
+
</aui-header>
|
|
98
|
+
<aui-content>
|
|
99
|
+
<aui-agent-input width="full" padding="4" gap="4">
|
|
100
|
+
<aui-inset
|
|
101
|
+
><aui-text muted> Describe what you'd like to explore. </aui-text>
|
|
102
|
+
</aui-inset>
|
|
103
|
+
<aui-divider></aui-divider>
|
|
104
|
+
<aui-stack gap="2">
|
|
105
|
+
<aui-select mode="bar" transparent width="full" density="compact">
|
|
106
|
+
<aui-select placeholder="GPT-5.2" outline>
|
|
107
|
+
<aui-optgroup label="Claude">
|
|
108
|
+
<aui-option value="opus-4.6">Opus 4.6</aui-option>
|
|
109
|
+
<aui-option value="sonnet-4.6">Sonnet 4.6</aui-option>
|
|
110
|
+
</aui-optgroup>
|
|
111
|
+
<aui-optgroup label="ChatGPT">
|
|
112
|
+
<aui-option value="gpt-5.2">GPT-5.2</aui-option>
|
|
113
|
+
</aui-optgroup>
|
|
114
|
+
</aui-select>
|
|
115
|
+
<aui-select placeholder="UX Design Assistant" outline>
|
|
116
|
+
<aui-optgroup label="Research">
|
|
117
|
+
<aui-option value="ux-design">UX Design Assistant</aui-option>
|
|
118
|
+
<aui-option value="ux-research">UX Researcher</aui-option>
|
|
119
|
+
<aui-option value="user-interview"
|
|
120
|
+
>User Interview Analyst</aui-option
|
|
121
|
+
>
|
|
122
|
+
</aui-optgroup>
|
|
123
|
+
<aui-optgroup label="Engineering">
|
|
124
|
+
<aui-option value="code-review">Code Review</aui-option>
|
|
125
|
+
<aui-option value="architect">System Architect</aui-option>
|
|
126
|
+
</aui-optgroup>
|
|
127
|
+
</aui-select>
|
|
128
|
+
<span spacer></span>
|
|
129
|
+
<aui-button ghost label="Settings" hide-label
|
|
130
|
+
><aui-icon name="sliders"></aui-icon
|
|
131
|
+
></aui-button>
|
|
132
|
+
<aui-button ghost label="History" hide-label
|
|
133
|
+
><aui-icon name="clock"></aui-icon
|
|
134
|
+
></aui-button>
|
|
135
|
+
</aui-select>
|
|
136
|
+
<aui-agent-prompt>
|
|
137
|
+
<aui-textarea
|
|
138
|
+
placeholder="Help me understand why users are dropping off during onboarding"
|
|
139
|
+
rows="3"
|
|
140
|
+
></aui-textarea>
|
|
141
|
+
<aui-button ghost label="Improve prompt" data-role="improve" hide-label
|
|
142
|
+
><aui-icon name="sparkle"></aui-icon
|
|
143
|
+
></aui-button>
|
|
144
|
+
<aui-inset padding="2" density="compact">
|
|
145
|
+
<aui-select mode="bar" transparent width="full">
|
|
146
|
+
<aui-button ghost label="Add" hide-label
|
|
147
|
+
><aui-icon name="plus"></aui-icon
|
|
148
|
+
></aui-button>
|
|
149
|
+
<aui-button ghost label="Search" hide-label
|
|
150
|
+
><aui-icon name="magnifying-glass"></aui-icon
|
|
151
|
+
></aui-button>
|
|
152
|
+
<aui-button ghost label="Attach" hide-label
|
|
153
|
+
><aui-icon name="paperclip"></aui-icon
|
|
154
|
+
></aui-button>
|
|
155
|
+
<aui-button ghost label="Experiment" hide-label
|
|
156
|
+
><aui-icon name="flask"></aui-icon
|
|
157
|
+
></aui-button>
|
|
158
|
+
<span spacer></span>
|
|
159
|
+
<aui-button ghost label="Record" hide-label
|
|
160
|
+
><aui-icon name="circle"></aui-icon
|
|
161
|
+
></aui-button>
|
|
162
|
+
<aui-button ghost label="Voice" hide-label
|
|
163
|
+
><aui-icon name="microphone"></aui-icon
|
|
164
|
+
></aui-button>
|
|
165
|
+
<aui-button round label="Send" data-submit disabled hide-label
|
|
166
|
+
><aui-icon name="arrow-up"></aui-icon
|
|
167
|
+
></aui-button>
|
|
168
|
+
</aui-select>
|
|
169
|
+
</aui-inset>
|
|
170
|
+
</aui-agent-prompt>
|
|
171
|
+
<aui-wrap gap="2" density="compact">
|
|
172
|
+
<aui-button outline round
|
|
173
|
+
><aui-icon name="lightbulb" slot="leading"></aui-icon> Clarify user
|
|
174
|
+
problem</aui-button
|
|
175
|
+
>
|
|
176
|
+
<aui-button outline round
|
|
177
|
+
><aui-icon name="crosshair" slot="leading"></aui-icon> Define user
|
|
178
|
+
context</aui-button
|
|
179
|
+
>
|
|
180
|
+
<aui-button outline round
|
|
181
|
+
><aui-icon name="list-checks" slot="leading"></aui-icon> Select
|
|
182
|
+
deliverable</aui-button
|
|
183
|
+
>
|
|
184
|
+
<aui-button outline round
|
|
185
|
+
><aui-icon name="pencil" slot="leading"></aui-icon> Refine
|
|
186
|
+
requirements</aui-button
|
|
187
|
+
>
|
|
188
|
+
</aui-wrap>
|
|
189
|
+
</aui-stack>
|
|
190
|
+
</aui-agent-input>
|
|
191
|
+
</aui-content>
|
|
192
|
+
</aui-container>
|
|
193
|
+
- description: Simple composer with send button
|
|
194
|
+
html: |-
|
|
195
|
+
<aui-agent-input padding="4" gap="4" max-width="lg">
|
|
196
|
+
<aui-agent-prompt>
|
|
197
|
+
<aui-textarea placeholder="Send a message..." rows="3"></aui-textarea>
|
|
198
|
+
<aui-inset padding="2" density="compact">
|
|
199
|
+
<aui-select mode="bar" transparent width="full">
|
|
200
|
+
<aui-button ghost label="Attach"
|
|
201
|
+
><aui-icon name="paperclip"></aui-icon
|
|
202
|
+
></aui-button>
|
|
203
|
+
<span spacer></span>
|
|
204
|
+
<aui-button round label="Send" data-submit disabled hide-label
|
|
205
|
+
><aui-icon name="arrow-up"></aui-icon
|
|
206
|
+
></aui-button>
|
|
207
|
+
</aui-select>
|
|
208
|
+
</aui-inset>
|
|
209
|
+
</aui-agent-prompt>
|
|
210
|
+
</aui-agent-input>
|
|
211
|
+
- description: Busy state with model chooser and stop button
|
|
212
|
+
html: |-
|
|
213
|
+
<aui-agent-input busy padding="4" gap="4" max-width="lg">
|
|
214
|
+
<aui-agent-prompt>
|
|
215
|
+
<aui-textarea placeholder="Ask a follow-up..." rows="2"></aui-textarea>
|
|
216
|
+
<aui-inset padding="2" density="compact">
|
|
217
|
+
<aui-select mode="bar" transparent width="full">
|
|
218
|
+
<aui-button ghost popover-trigger="model-chooser">
|
|
219
|
+
<aui-icon name="robot" slot="leading"></aui-icon> Sonnet 4.6
|
|
220
|
+
</aui-button>
|
|
221
|
+
<span spacer></span>
|
|
222
|
+
<aui-button round label="Stop" data-submit disabled hide-label
|
|
223
|
+
><aui-icon name="stop"></aui-icon
|
|
224
|
+
></aui-button>
|
|
225
|
+
</aui-select>
|
|
226
|
+
</aui-inset>
|
|
227
|
+
</aui-agent-prompt>
|
|
228
|
+
</aui-agent-input>
|
|
229
|
+
- description: Single-line inline prompt with send button
|
|
230
|
+
html: |-
|
|
231
|
+
<aui-agent-input padding="4" max-width="lg">
|
|
232
|
+
<aui-agent-prompt inline>
|
|
233
|
+
<aui-textarea placeholder="Send a message..." rows="1"></aui-textarea>
|
|
234
|
+
<aui-button round label="Send" data-submit hide-label
|
|
235
|
+
><aui-icon name="arrow-up"></aui-icon
|
|
236
|
+
></aui-button>
|
|
237
|
+
</aui-agent-prompt>
|
|
238
|
+
</aui-agent-input>
|