Skip to content
Components95 / 118

Effort Slider

An AI effort picker: a little brain rides a track of stops, leaning and stretching as you drag and springing onto each stop with an overshoot. At the top level the fill breaks into a twinkling pixel galaxy and sparks burst from the brain.

SliderAISettingsCanvasParticlesSquash & stretchGSAP
EffortMedium
FasterSmarter
Recommended
Drag the brain to GalaxyOr click the track, or use the arrow keys

Tweak

LIVE

Look

320px

Galaxy top level

Props

12 props
  • levelsstring[]
    The stops, from faster to smarter.default ["Low", …, "Galaxy"]
  • valuestring
    Controlled level.
  • defaultValuestring
    Starting level (the recommended one by default).
  • onValueChange(level) => void
    Called as the level changes.
  • recommendedstring
    Level marked Recommended.default "Medium"
  • titlestring
    Card title.default "Effort"
  • minLabelstring
    Left end label.default "Faster"
  • maxLabelstring
    Right end label.default "Smarter"
  • infostring
    Tooltip text for the ? button (empty hides it).
  • galaxyboolean
    Galaxy treatment for the last level.default true
  • widthnumber
    Card width, px.default 320
  • classNamestring
    Extra classes.