{
  "id": "labeled-progress-bar",
  "name": "Labeled Progress Bar",
  "category": "loaders",
  "tags": [
    "determinate",
    "storage",
    "usage",
    "percentage",
    "quota"
  ],
  "description": "A determinate progress bar with a title, percentage and caption, like a storage usage meter.",
  "url": "https://copy-css.com/snippets/labeled-progress-bar",
  "markdown": "https://copy-css.com/snippets/labeled-progress-bar.md",
  "html": "<div class=\"progress-labeled\">\n  <div class=\"progress-labeled-head\"><span>Storage</span><span>72%</span></div>\n  <div class=\"progress-labeled-track\" style=\"--value: 72%\" role=\"progressbar\" aria-label=\"Storage used\" aria-valuenow=\"72\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n  <small>36 GB of 50 GB used</small>\n</div>",
  "css": ".progress-labeled {\n  display: grid;\n  gap: 8px;\n  width: min(100%, 280px);\n  color: #18181b;\n  font: 14px/1.3 system-ui, sans-serif;\n}\n\n.progress-labeled-head {\n  display: flex;\n  justify-content: space-between;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n}\n\n.progress-labeled-track {\n  --value: 0%;\n  height: 8px;\n  overflow: hidden;\n  border-radius: 999px;\n  background: #ede9fe;\n}\n\n.progress-labeled-track::before {\n  content: \"\";\n  display: block;\n  width: var(--value);\n  height: 100%;\n  border-radius: inherit;\n  background: linear-gradient(90deg, #8b5cf6, #6d28d9);\n  transition: width 0.4s ease;\n}\n\n.progress-labeled small {\n  color: #71717a;\n  font-size: 12px;\n}",
  "features": [
    "transitions",
    "linear gradients",
    "CSS Grid",
    "Flexbox",
    "custom properties"
  ],
  "customProperties": [
    {
      "name": "--value",
      "value": "0%"
    }
  ]
}
