COMPONENT
IntentControlRange
Range slider intent-first avec mode standalone stylisé ou naked, glow optionnel et affichage de valeur.
🕹️ ControlSince v0.3.0
DESIGN SYSTEM
Mode
Intent
Variant
Glow
Intensity
State
PLAYGROUND
Theme
Layout
Size
Content
Range
Value
Current value: 65
PREVIEW
North
🐺 Maison Stark
Winter is Coming
Current
65%
Loyauté du Nord
Mesure l’adhésion des bannerets à Winterfell.
65
MIN
0
STEP
5
MAX
100
Tip: en mode naked, le composant devient une lame nue, sans armure visuelle. Pratique pour l’insérer dans un field ou une composition plus dense 🗡️
RESOLVED
{
  "mode": "dark",
  "intent": "informed",
  "variant": "elevated",
  "intensity": "medium",
  "toneStep": 500,
  "toneEffective": "blue",
  "glowKey": null,
  "glowBackground": null,
  "style": {
    "--intent-bg": "var(--ids-color-blue-500)",
    "--intent-ring": "var(--ids-color-blue-700)",
    "--intent-text": "var(--ids-color-blue-200)",
    "--intent-bg-opacity": "0.16",
    "--intent-ring-opacity": "0.304",
    "--intent-border": "var(--ids-color-blue-700)",
    "--intent-glow-fill-opacity": "0",
    "--intent-glow-border-opacity": "0",
    "--intent-glow-filter": "none"
  },
  "classes": {
    "base": "intent-surface inline-flex items-center gap-2",
    "surface": "intent-bg",
    "border": "intent-ring",
    "text": "intent-text",
    "ring": "",
    "shadow": "intent-shadow-soft",
    "glow": "",
    "disabled": ""
  },
  "warnings": []
}
PROPS
PropTypeDefault
PROPS SYSTÈME
intent
Intent sémantique (informed/empowered/warned/threatened/themed/toned/glowed).
IntentDEFAULT_INTENT
variant
Variant visuel (flat/outlined/elevated/ghost).
VariantDEFAULT_VARIANT
tone
Override de tone (n’a d’effet que si intent='toned').
ToneDEFAULT_TONE (si toned)
toneStep
Step Tailwind (50..950) pour éclaircir/assombrir les teintes (autour du step canonique 500).
ToneStepDEFAULT_TONE_STEP
glow
Glow normal (true/false) ou glow esthétique (uniquement si intent='glowed').
boolean | Glowfalse (ou glow par intent)
intensity
Intensité (soft/medium/strong).
IntensityDEFAULT_INTENSITY
mode
Mode colorimétrique (dark/light).
ModeDEFAULT_MODE
disabled
Désactive l’état visuel (hooks + styles).
booleanfalse
PROPS LOCALES
className
Classes CSS additionnelles sur la racine ou le slider nu selon le mode.
string
size
Taille générale du contrôle.
"xs" | "sm" | "md" | "lg" | "xl"md
fullWidth
Étire le contrôle sur toute la largeur disponible.
booleanfalse
naked
Retire le frame visuel standalone et ne garde que le slider nu.
booleanfalse
label
Label principal optionnel au-dessus du slider.
React.ReactNode
caption
Texte secondaire optionnel.
React.ReactNode
valueLabel
Valeur affichée manuellement à droite du header.
React.ReactNode
showValue
Affiche automatiquement la valeur numérique courante.
booleanfalse
formatValue
Fonction de formatage de la valeur affichée.
(value: number) => React.ReactNode
leading / trailing
Slots visuels optionnels à gauche et à droite de la piste.
React.ReactNode / React.ReactNode
invalid
Force l’état invalide.
booleanfalse
readOnly
Lecture seule. Le slider reste visible mais non interactif.
booleanfalse
min / max / step
Bornes et pas natifs du range input.
number / number / number0 / 100 / 1
value / defaultValue
Valeur contrôlée ou initiale du slider.
number / number
(native props)
Props natives de input[type=range] compatibles (name, onChange, aria-*, etc.).
InputHTMLAttributes<HTMLInputElement> (DS omissions)
TYPES & CONSTANTES
APIValeur / Référence
TYPES
IntentNametype
Type union des intents sémantiques.
"informed" | "empowered" | "warned" | "threatened" | "themed" | "toned" | "glowed"
VariantNametype
Type union des variants visuels.
"flat" | "outlined" | "elevated" | "ghost"
ToneNametype
Type union des tones (familles Tailwind + theme + black).
("slate" | "gray" | ... | "theme" | "black")
GlowNametype
Type union des aesthetic glows (utilisable quand intent='glowed').
"aurora" | "ember" | "cosmic" | "mythic" | "royal" | "mono"
Intensitytype
Intensité des effets (glow/contraste).
"soft" | "medium" | "strong"
ModeNametype
Mode colorimétrique.
"dark" | "light"
CONSTANTES
DEFAULT_INTENTconst
Intent par défaut si aucun intent n’est fourni.
informed
DEFAULT_VARIANTconst
Variant par défaut si aucun variant n’est fourni.
elevated
DEFAULT_GLOW_BY_INTENTconst
Mapping intent → glow par défaut (quand glow est implicite).
DEFAULT_GLOW_BY_INTENT