[+] Progress bar
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import React from "react";
|
||||
import { Icon } from '@iconify/react';
|
||||
|
||||
interface ProgressProps {
|
||||
percent: number;
|
||||
disableReturn?: boolean;
|
||||
}
|
||||
|
||||
export default function Progress({percent, disableReturn}: ProgressProps) {
|
||||
return <div className="flex gap-2 items-center">
|
||||
{!disableReturn && <Icon icon="mdi:arrow-left" className="text-gray-400 text-2xl" />}
|
||||
<div className="relative bg-gray-200 h-4 rounded-xl flex-1">
|
||||
{percent > 0 && <div className="absolute bg-green h-4 rounded-xl" style={{width: `${percent}%`}}></div>}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user