Skip to content

Chat Composer Drawer

@astryxdesign/core v0.7.1 · ChatComposerDrawer

Props ​

PropTypeDefaultDescription
countnumber—Item count. Providing it turns on the collapse toggle and is shown in the collapsed summary. Omit it and the drawer stays open.
labelstringLocalized “Items”Name used in the collapsed summary and in the expand and collapse accessible labels.
v-model:is-collapsedboolean—Controlled collapsed state. Bound, the drawer renders exactly this value and the toggle only asks for a change.
defaultIsCollapsedbooleanfalseInitial collapsed state while isCollapsed is unbound.

Events ​

EventPayloadDescription
collapsedChangebooleanThe collapsed state the toggle is asking for. v-model:is-collapsed listens to it.

Slots ​

SlotDescription
(default)The supplementary content: attachment chips, thumbnails, prompts. Laid out as a wrapping row.
collapsedSummaryReplaces the count badge and label shown while collapsed. The toggle still owns the disclosure name.