SSocratic UI

Multi Select

Open in playground

Pick up to N options. A capped counter shows remaining capacity; unselected cards dim at the limit so users know why they can't pick more.

Preview

02

What matters most right now?

Choose up to 3 priorities to guide your plan

Usage

import { MultiSelect } from "@/components/socratic-ui/multi-select";

<MultiSelect
  question="What matters most right now?"
  max={3}
  options={[
    { title: "Speed to market" },
    { title: "Polish & quality" },
  ]}
  value={priorities}
  onChange={setPriorities}
/>

API Reference

PropTypeDefault
questionrequired

The headline shown above the options.

string
subtitle

Optional supporting copy beneath the question.

string
optionsrequired

The list of selectable options.

{ title: string; subtitle?: string }[]
max

Maximum selectable options. Unselected cards dim once the cap is hit.

number3
valuerequired

Titles of the currently selected options.

string[]
onChangerequired

Called when the selection changes.

(value: string[]) => void
number

Optional leading question number.

string