Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

🦕 Deno module for creating Terminal User Interfaces
Go to Latest
interface SliderOptions
implements ComponentOptions
import { type SliderOptions } from "https://deno.land/x/tui@2.0.0/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">