Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
// Short variant - horizontal pill buttons
&--short {
display: block;
max-width: 768px;
}

// Long variant - vertical stacked list
&--long {
display: flex;
flex-direction: column;
gap: 0;
max-width: 768px;
margin-bottom: cssUtils.$space-m;
}

Expand All @@ -53,6 +55,12 @@
}
}

.openui-agent-container:not(.openui-agent-container--mobile)
.openui-agent-composer-slot
> .openui-agent-conversation-starter {
width: calc(100% - #{cssUtils.$space-m-l} - #{cssUtils.$space-m-l});
}

// Short variant item (pill-style buttons)
.openui-agent-conversation-starter-item-short {
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,24 @@ export const WithWelcome = {

/** Composer-only starters (no Welcome) — chips above the input. */
export const ComposerStarters = {
render: () => (
args: {
starterVariant: "short",
},
argTypes: {
starterVariant: {
control: "select",
options: ["short", "long"],
description: "Switch between pill and list-style conversation starters.",
},
},
render: ({ starterVariant }: { starterVariant: "short" | "long" }) => (
<AgentInterface
storage={emptyStorage}
llm={echoLLM}
logoUrl={logoUrl}
agentName="OpenUI"
starters={COMPOSER_STARTERS}
starterVariant={starterVariant}
/>
),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ $center-align-spacing: calc(32px + cssUtils.$space-s);
.openui-agent-conversation-starter--short {
justify-content: center;
}

.openui-agent-conversation-starter--long {
max-width: 770px;
}
}

// When welcome screen has the desktop composer variant
Expand Down
Loading