Skip to content
BigBang

Popular

    ↑↓Navigate↵OpenEscClose
    TR

    Components

    ProgressBar

    A bar that shows how far a task has come, or sweeps while the remaining time is unknown.

    Storybook
    Storybook
    Source
    Source

    ProgressBar shows the progress of a task that takes more than a few seconds: a file upload, an import, a multi-step operation.

    • For waits under a second: Show nothing.
    • For a button or a small area loading: Spinner or the button’s loading state.
    • While content loads: Use Skeleton.
    • To show steps in a form: Use a step indicator.
    Transferring files

    About 2 minutes left

    x
    import { ProgressBar } from '@bigbang/ui';
    export default function WithDescription() {
    return <ProgressBar label="Transferring files" value={3} max={10} valueText="3 of 10 files" description="About 2 minutes left" />;
    }
    1. Label.
    2. Value: Percentage.
    3. Track.
    4. Fill.
    5. Description: Optional.
    • The fill grows smoothly when the value changes.
    • Without value the bar sweeps; it turns determinate once the value is known.
    • In right-to-left text the fill starts on the right.
    • Name the label after the task in progress.
    • Use a determinate bar when progress can be measured.
    • On completion, switch to the success tone or replace the bar with the result.
    Turkish English
    Dosya yükleniyor Uploading file
    Yaklaşık 2 dakika kaldı About 2 minutes left
    • Spinner: Small, indeterminate loading.
    • Skeleton: A placeholder for loading content.
    • Toast: To report the result when it finishes.