Config & playground

TemperatureSlider

Custom-styled native range input for temperature, top_p, or any bounded float. Shift+arrow jumps by 10× step; works with keyboard and touch out of the box.

Sourcesrc/components/ai/temperature-slider.tsx

Basic

Controlled by useState; default range 0–2, step 0.05.

0.7000

With tick marks

Pass marks={[…]} to render tick lines with labels for common presets.

1.0000
PreciseBalancedCreative

Lower values are more deterministic. Shift+arrow for 10× steps.