Slider

Usage

Include CSS

Import Tailwind and one full 5h3ll-ui style bundle.

@import "tailwindcss";
@import "5h3ll-ui/vega.css";

Or import only the base CSS, Slider component CSS, and one style pack.

@import "tailwindcss";
@import "5h3ll-ui/base.css";
@import "5h3ll-ui/components/range.css";
@import "5h3ll-ui/styles/vega.css";

Slider uses the Range component CSS.

Using CDN or bundler imports? See the Installation page.

Include JavaScript

Copy or serve the full 5h3ll-ui JavaScript bundle.

<script src="/assets/js/all.min.js" defer></script>

Or copy or serve the 5h3ll-ui runtime and Slider script.

<script src="/assets/js/5h3ll-ui.min.js" defer></script>
<script src="/assets/js/range.min.js" defer></script>

Using CDN or bundler imports? See the Installation page.

Add your slider HTML

Use a native <input type="range" class="input">. Include range.js so 5h3ll-ui can keep the filled track in sync with the input value.

<input type="range" class="input w-full" min="0" max="100" value="50" />

HTML structure

<input type=“range” class=“input”>
Native range input styled as a slider. Width utilities such as w-full can be added directly.

5h3ll-ui intentionally uses the native range input. Unlike shadcn/ui’s Base UI slider, it does not support multiple thumbs or vertical orientation.

Examples

Default

Label

50

Disabled

RTL