{% extends 'base.html.twig' %} {% block title %}Progress Ring - Design System - Bubul{% endblock %} {% block body %}
{% verbatim %}{% include '_molecules/progress-ring/progress-ring.html.twig' with {
value: 75,
size: 'md',
variant: 'primary'
} %}{% endverbatim %}
Fichier : templates/_molecules/progress-ring/progress-ring.html.twig
Paramètre : size
xs (32px)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 75, size: 'xs' } %}sm (48px)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 75, size: 'sm' } %}md (64px)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 75, size: 'md' } %}lg (96px)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 75, size: 'lg' } %}xl (128px)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 75, size: 'xl' } %}Paramètre : variant — Utilise les couleurs du Design System
primary
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 75, size: 'lg', variant: 'primary' } %}success
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 100, size: 'lg', variant: 'success' } %}warning
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 50, size: 'lg', variant: 'warning' } %}error
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 25, size: 'lg', variant: 'error' } %}info
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 60, size: 'lg', variant: 'info' } %}cohorts
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 85, size: 'lg', variant: 'cohorts' } %}muted
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 40, size: 'lg', variant: 'muted' } %}Sans label
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 60, size: 'lg', showLabel: false } %}Épais (thick)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 80, size: 'lg', thickness: 'thick' } %}Fin (thin)
{% include '_molecules/progress-ring/progress-ring.html.twig' with { value: 45, size: 'lg', thickness: 'thin' } %}| Paramètre | Type | Défaut | Description |
|---|---|---|---|
value | number | 0 | Pourcentage (0-100) |
size | string | md | xs, sm, md, lg, xl |
variant | string | primary | primary, success, warning, error, info, cohorts, muted |
showLabel | bool | true | Afficher le pourcentage central |
thickness | string | normal | thin, normal, thick |
animate | bool | true | Animation au chargement |
class | string | '' | Classes CSS additionnelles |