{% extends 'base.html.twig' %} {% block title %}Level Indicator - Design System - Bubul{% endblock %} {% block body %}
{% verbatim %}{% include '_molecules/level-indicator/level-indicator.html.twig' with {
level: 2,
maxLevel: 3,
showLabel: true
} %}{% endverbatim %}
Paramètre : style
equal (défaut) - Barres de même hauteur
progressive - Barres avec hauteurs croissantes
Paramètres : barWidth, gap
Barres fines et serrées (style Moodia)
Barres très fines (style minimal)
Barres larges et espacées
| Paramètre | Type | Défaut | Description |
|---|---|---|---|
level | number | 1 | Niveau actuel (1 à maxLevel) |
maxLevel | number | 3 | Nombre total de barres |
size | string | md | sm, md, lg |
variant | string | auto | auto, primary, success, warning, error, muted |
style | string | equal | equal (même hauteur), progressive (croissant) |
barWidth | string | null | Largeur personnalisée (ex: 'w-1', 'w-[3px]') |
gap | string | null | Espacement personnalisé (ex: 'gap-px', 'gap-0.5') |
showLabel | bool | false | Afficher le label de niveau |
labels | array | null | Labels personnalisés par niveau |
class | string | '' | Classes CSS additionnelles |