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-sliderNeeds 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.tsxcomponentember/slosh-slider/slosh-slider.cssstylesember/slosh-slider/SloshSliderDemo.tsxdemoember/tactile-kit/kit.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
valueValue | number | 40 |
minMin | number | 0 |
maxMax | number | 100 |
stepStep | number | 1 |
thicknessThickness | number | 28 |
labelLabel | string | 'Fill' |
unitUnit | string | '%' |
disabledDisabled | boolean | false |