Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tui/src/components/mod.ts>SliderOptions

🦕 Deno module for creating Terminal User Interfaces
Latest
interface SliderOptions
implements ComponentOptions
import { type SliderOptions } from "https://deno.land/x/tui@2.1.11/src/components/mod.ts";

Properties

min: number | Signal<number>
max: number | Signal<number>
step: number | Signal<number>
value: number | Signal<number>
adjustThumbSize: boolean | Signal<boolean>

When false thumb will be 1 cell wide/high.

If this is set to true, thumb size will adjust so it takes as much space as it can so it looks more natural to interact with.

Basically when set to true it'll make slider thumb work just like in browsers.

theme: DeepPartial<SliderTheme, "thumb">