xtreme-ui
Version:
Collection of reusable components that can be used in web projects
2 lines (1 loc) • 542 B
JavaScript
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),g=require("clsx");;/* empty css */const s=l.forwardRef((t,a)=>{const{className:o,progress:i=100,intermediate:r=!1}=t,n=r?150:Math.min(Math.max(i,0),100),c=g("xtrProgressBar",r&&"intermediate",o);return e.jsx("div",{ref:a,className:c,role:"progressbar",children:e.jsx("span",{className:"progress",style:{width:`${n}%`}})})});s.displayName="ProgressBar";exports.ProgressBar=s;