Separated kubernetes widgets from resources widgets

This commit is contained in:
James Wynn 2022-11-18 18:02:23 -06:00
parent 056e26dfd3
commit fdb143304f
9 changed files with 200 additions and 46 deletions

View file

@ -0,0 +1,12 @@
export default function UsageBar({ percent }) {
return (
<div className="mt-0.5 w-full bg-theme-800/30 rounded-full h-1 dark:bg-theme-200/20">
<div
className="bg-theme-800/70 h-1 rounded-full dark:bg-theme-200/50 transition-all duration-1000"
style={{
width: `${percent}%`,
}}
/>
</div>
);
}