Chat Composer Drawer
@astryxdesign/core v0.7.1 · ChatComposerDrawer
Props
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | — | Item count. Providing it turns on the collapse toggle and is shown in the collapsed summary. Omit it and the drawer stays open. |
label | string | Localized “Items” | Name used in the collapsed summary and in the expand and collapse accessible labels. |
v-model:is-collapsed | boolean | — | Controlled collapsed state. Bound, the drawer renders exactly this value and the toggle only asks for a change. |
defaultIsCollapsed | boolean | false | Initial collapsed state while isCollapsed is unbound. |
Events
| Event | Payload | Description |
|---|---|---|
collapsedChange | boolean | The collapsed state the toggle is asking for. v-model:is-collapsed listens to it. |
Slots
| Slot | Description |
|---|---|
| (default) | The supplementary content: attachment chips, thumbnails, prompts. Laid out as a wrapping row. |
collapsedSummary | Replaces the count badge and label shown while collapsed. The toggle still owns the disclosure name. |