Skip to main content

Progress Value

Style Presets

Size

Label Options

Animation

Colors

Dimensions

Preview

65%

Common Variations

Loading state
Upload progress
Task completion

Generated CSS

.progress-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.progress-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 8px;
  z-index: 1;
}

Generated HTML

<div class="progress-container">
  <div class="progress-bar" style="width: 65%" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100">
    <span class="progress-label">65%</span>
  </div>
</div>

Progress Bar Best Practices

Accessibility

  • Use role="progressbar" for screen readers
  • Include aria-valuenow, aria-valuemin, and aria-valuemax
  • Use aria-busy="true" for indeterminate states
  • Ensure sufficient color contrast (4.5:1 minimum)
  • Consider announcements for significant progress changes

User Experience

  • Show percentage for determinate progress
  • Use indeterminate bars only when progress can't be measured
  • Animate progress changes smoothly (300-500ms)
  • Consider showing estimated time remaining for long operations
  • Provide cancel option for user-initiated operations

Visual Design

  • Use semantic colors: green for success, red for errors
  • Keep labels visible - inside for larger bars, outside for smaller
  • Striped patterns indicate active processing
  • Consistent styling with your design system
  • Height of 8-24px works best for most UIs

Performance

  • Use CSS transitions instead of JavaScript animation
  • Avoid updating progress too frequently (max 60fps)
  • Use transform or width for animations
  • Consider reducing animation on slow devices
  • Respect prefers-reduced-motion media query

Need Custom Progress Indicators?

Our team can create custom progress bars, loading animations, and status indicators that match your brand and enhance user experience during operations.

Get Custom UI Components