{% extends 'base.html.twig' %} {% block title %}Progress Ring - Design System - Bubul{% endblock %} {% block body %}
Molécules /

Progress Ring

Cercle de progression SVG avec pourcentage central

{# ===== USAGE ===== #}

Usage

{% 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

{# ===== TAILLES ===== #}

Tailles

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' } %}
{# ===== VARIANTES ===== #}

Variantes

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' } %}
{# ===== OPTIONS ===== #}

Options

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ÈTRES ===== #}

Paramètres

Paramètre Type Défaut Description
valuenumber0Pourcentage (0-100)
sizestringmdxs, sm, md, lg, xl
variantstringprimaryprimary, success, warning, error, info, cohorts, muted
showLabelbooltrueAfficher le pourcentage central
thicknessstringnormalthin, normal, thick
animatebooltrueAnimation au chargement
classstring''Classes CSS additionnelles
{% endblock %}