showcase/shell-docs/src/content/reference/bot/components/Select.mdx
Select is a dropdown for an Actions row. The selection handler is inline, like Button's onClick; the selected option's value arrives as a string.
import { Select } from "@copilotkit/bot-ui";
<Actions>
<Select
placeholder="Pick a severity"
options={[
{ label: "SEV1 — page someone", value: "sev1" },
{ label: "SEV2 — business hours", value: "sev2" },
{ label: "SEV3 — backlog", value: "sev3" },
]}
onSelect={async ({ thread, action }) => {
await thread.post(`Severity set to ${action.value}.`);
}}
/>
</Actions>
Renders as a static_select element — at most 100 options (SLACK_LIMITS.selectOptions).