For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/v0.1.0/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/v0.1.0/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/v0.1.0/en/components/slider.md.
  • English
  • v0.1.0
  • Slider

    Live previewHTML · CSS · JavaScript

    Usage

    Include CSS

    Import Tailwind and one full A3S UI style bundle.

    @import "tailwindcss";
    @import "@a3s-lab/ui/a3s.css";

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

    @import "tailwindcss";
    @import "@a3s-lab/ui/base.css";
    @import "@a3s-lab/ui/components/range.css";
    @import "@a3s-lab/ui/styles/a3s.css";

    Slider uses the Range component CSS.

    Using CDN or bundler imports? See the Installation page.

    Include JavaScript

    Copy or serve the full A3S UI JavaScript bundle.

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

    Or copy or serve the A3S UI runtime and Slider script.

    <script src="/assets/js/runtime.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 A3S UI can keep the filled track in sync with the input value.

    <input type="range" class="input w-full" aria-label="Volume" 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.

    A3S 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

    Live previewHTML · CSS · JavaScript

    Label

    Live previewHTML · CSS · JavaScript
    50

    Disabled

    Live previewHTML · CSS · JavaScript

    RTL

    Live previewHTML · CSS · JavaScript