Skip to content

Slosh Slider

A slider whose fill is a liquid. Its front is a short chain of masses on springs: move the value fast and the surface leans back against the motion, then surges forward, overshoots and settles as a damped wave.

$149 once · every Pro piece

Customize

The liquid is bone, with a hot meniscus line only while it moves.

Install

npx shadcn@latest add @obsyde/slosh-slider

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { SloshSlider } from '@/components/obsyde/ember/slosh-slider/SloshSlider';

export function Example() {
  return (
    <SloshSlider defaultValue={40} />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/slosh-slider/SloshSlider.tsxcomponent
  • ember/slosh-slider/slosh-slider.cssstyles
  • ember/slosh-slider/SloshSliderDemo.tsxdemo
  • ember/tactile-kit/kit.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
valueValuenumber40
minMinnumber0
maxMaxnumber100
stepStepnumber1
thicknessThicknessnumber28
labelLabelstring'Fill'
unitUnitstring'%'
disabledDisabledbooleanfalse