Scenario Builder
For decisions with trade-offs. Sliders set how much each factor counts, and rules mark what's a must and what's a nice-to-have.
- Component
- Light and dark
- Updated 5 months ago
Paste this into your agent.
Add weigh what matters, set the rules, and compare the options to <the page you want it on>. Install it with: npx shadcn add @ollie/scenario-builder Pass traits in as props. Handle onSubmit yourself; don't fetch inside the component. Keep the ocean theme tokens.
More components
- DropzoneDrag files in, or click to choose. Wrong types get turned away.
- Multi comboboxSearch and pick one or many from a long list.
- Date range pickerPick a date range, or one tap for "last 30 days".
- Filter barSearch and filters that stay in the URL, so links keep them.
- Sort menuPick what to sort by and which way, in one menu.
- Inline editClick text to edit it right there. Saves when you click away.
- Number inputA number box that won't change when you scroll past it.
- Segmented controlPick one of a few options, all visible at once.
- File uploadUpload several files at once, with progress and retry for each.
- Rich text editorA writing box with bold, italics, headings, lists, links and images.