my/ui

Command Palette

Search for a command to run...

All components

Tiny Thumb Slider

sliders

Origin UI component.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/comp-244.json

Usage

import Cmp from "@/registry/origin-ui/comp-244";

export default function Demo() {
  return <Cmp />;
}

Component source

import { Label } from "@/components/ui/label";
import { Slider } from "@/components/ui/slider";

export default function Component() {
  return (
    <div className="*:not-first:mt-4">
      <Label>Slider with tiny thumb</Label>
      <Slider
        aria-label="Slider with tiny thumb"
        className="**:data-[slot=slider-thumb]:shadow-none [&>:last-child>span]:h-6 [&>:last-child>span]:w-2.5 [&>:last-child>span]:border-[3px] [&>:last-child>span]:border-background [&>:last-child>span]:bg-primary [&>:last-child>span]:ring-offset-0"
        defaultValue={[25]}
      />
    </div>
  );
}

Source: Origin UI