PluginProbe
Extendify / 0.9.3
Extendify v0.9.3
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Onboarding / components / ProgressBar.js

ProgressBar.js in Extendify 0.9.3, at src/Onboarding/components/ProgressBar.js

26 lines 933 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 export const ProgressBar = ({ currentPageIndex, totalPages }) => {
2 const currentProgress = Math.round(
3 ((currentPageIndex + 1) / totalPages) * 100,
4 )
5 const currentPageText = `(${currentPageIndex}/${totalPages - 1})`
6
7 return (
8 <div className="flex-1 hidden md:flex justify-center items-center">
9 <div
10 role="progressbar"
11 aria-valuenow={currentProgress}
12 aria-valuemin="0"
13 aria-valuetext={currentPageText}
14 aria-valuemax="100"
15 className="w-32 bg-gray-200 h-2 rounded-full">
16 <div
17 className="rounded-full bg-partner-primary-bg h-2"
18 style={{
19 width: `${currentProgress}%`,
20 }}></div>
21 </div>
22 <div className="pl-2 flex justify-center">{currentPageText}</div>
23 </div>
24 )
25 }
26