Skip to main content
Version: Next

AITemperatureSlider

The AITemperatureSlider component manages generative model randomness offsets (typically 0.0 to 2.0 in standard LLMs). It builds on the modular <Slider> primitive to present custom click-snappable preset targets alongside real-time warnings indicating structured coherence versus high-hallucination creativity risks.

Value: 0.7
Temperature0.7
Balanced & CoherentNatural intelligence. Ideal for general chatbot responses and emails.

Installation

ignix add component ai-temperature-slider

Usage

import { AITemperatureSlider } from '@mindfiredigital/ignix-ui';

Basic Example

import { useState } from 'react';
import { AITemperatureSlider } from '@mindfiredigital/ignix-ui';

function ConfigPage() {
const [temperature, setTemperature] = useState(0.7);

return (
<div className="w-80">
<AITemperatureSlider
value={temperature}
onChange={setTemperature}
/>
</div>
);
}

Variants

<AITemperatureSlider
showPresets={false}
showRiskIndicator={false}
/>

<AITemperatureSlider variant="glass" />

Props

PropTypeDefaultDescription
valuenumberundefinedControlled temperature value (0.0 to 2.0)
defaultValuenumber0.7Initial value if rendered in uncontrolled contexts
onChange(value: number) => voidundefinedCallback triggered when the temperature is changed
size'sm' | 'md' | 'lg''md'Size variant of the component
showPresetsbooleantrueToggle visibility of quick-snap preset click tags (Precise, Balanced, Creative)
showRiskIndicatorbooleantrueToggle visibility of warning text block descriptions explaining randomness hallucination levels
variant'default' | 'dark' | 'glass''default'Visual styling design variant for the wrapper card panel