bit Bheadless

Slider

Single-value and range sliders styled with Tailwind utilities. Thumbs and the range receive their positioning inline; you size and color the parts.

Implementation: CSS Tailwind

Single value

Each BitBhSliderThumb is a role="slider". Click or drag the track, or use arrows (± Step), PageUp / PageDown or Shift+arrows (± LargeStep), Home / End. Because the root gets a class, it needs relative itself — thumbs are positioned against it.

Volume: 50

Range with two thumbs

@bind-Values with one thumb per value; MinStepsBetweenThumbs keeps them apart and ValueText makes screen readers say "$200".

Price: $200 – $600

Step, LargeStep and a thumb Template

Step="0.5" snaps to half degrees, LargeStep="5" sets the PageUp / PageDown jump. The thumb's Template receives its value for a bubble.

21.5°

Target: 21.5 °C

Vertical orientation

Orientation="BitBhOrientation.Vertical": lay the root out as a column and center the thumb horizontally (left-1/2 -ml-2.5). ↑ / → increase, ↓ / ← decrease.

In a field, with OnValueCommit

Inside BitBhField the thumb is labelled by BitBhLabel and described by BitBhDescription. @bind-Value updates live; OnValueCommit fires on pointer up or per key press.

Saved when you release the thumb or press a key.

Live: 70% · Committed: 70%

Disabled

Disabled="true" ignores input, removes the thumbs from the tab order and adds data-disabled to every part. The range is uncontrolled via DefaultValues.

An unhandled error has occurred. Reload 🗙