Hewn
Components

Components

Slider

Single-value range control with tabular output and accessible thumb.

newfree

Install

@hewnui/ui · hewnui

Terminal
npm install @hewnui/ui
Terminal
pnpm add @hewnui/ui
Terminal
yarn add @hewnui/ui
Terminal
bun add @hewnui/ui
Terminal
npx hewnui@latest add slider

Built on React Aria Slider. Output uses tabular numerals; the thumb keeps a 40×40 hit target.

6
Global motion dial for preview surfaces.
18

Usage

TSX
import { Slider } from "@hewnui/ui";

<Slider label="Opacity" defaultValue={42} minValue={0} maxValue={100} />

States

  • Description helper text
  • Disabled
  • Dragging press scale on the thumb

Accessibility

  • Role slider with keyboard arrow support
  • Label and output are associated automatically
  • Focus ring on the thumb

API reference

Props for Slider from @hewnui/ui/slider. Generated from component types — not hand-written.

Prop

Type

On this page