Skip to content
Knowns UI
Get ProSign in

Use Case Rail

A scrolling rail of use case chips that drives a screen: each chip plays what the product does in that case. It steps by itself until the visitor touches it, and arrow keys move along it.

On this page

Examples

Chips

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

items
{ id, label, icon? }[]
The cases, in rail order.
children
(item, index) => ReactNode
Draws the panel for the active case.
value / defaultValue / onValueChange
string / string / (id) => void
Defaultfirst
Controlled or uncontrolled active case.
autoplay
number
Default5200
Ms per case while it steps by itself; 0 for none. Stops for good on the first press, key or touch.
label
string
Default"Use cases"
Accessible name of the rail.
variant
"soft" | "outline"
Default"soft"
Filled chips, or outlined ones on a busy background.
align
"center" | "start"
Default"center"
Centre the chips when they fit.
panelClassName
string
Class of the panel.

States

Stepping by itself
A hairline under the active chip fills over the step; the next case follows
Defaultautoplay ms
linear
Case change
The new panel rises 6px and fades in
Default180ms
ease out
First press or key
Autoplay stops for good
Defaultat once
-
Off screen, hidden tab, Pause
Autoplay holds
-
Reduced motion
No autoplay, no rise
-

Accessibility

  • A tablist with automatic activation: Left and Right move and select, Home and End jump. One chip is in the tab order.
  • The panel is a tabpanel labelled by its chip.
  • A visible Pause button while it steps by itself.

When to use

When to use

  • One product screen that plays a different story per use case, picked from a rail of chips.
  • A landing section that steps through cases by itself until the visitor takes over.

When not to use

  • Switching between views of an app: use Tabs.
  • Two or three short options in a control: use Segmented Control.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Use Case Rail to my app and wire it to my own data.
  • I need one product screen that plays a different story per use case, picked from a rail of chips. Set that up with the Knowns UI Use Case Rail.
  • Which Use Case Rail props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "use-case-rail" }) and search_docs({ query: "use case rail" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Use Case Rail, or found something off? We read every message.