mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-22 05:15:32 +01:00
migrate mixer
This commit is contained in:
49 files changed
+659
-859
No files matched your search
@@ -0,0 +1,15 @@
|
||||
.progress {
|
||||
width: 100%;
|
||||
height: var(--space-2);
|
||||
overflow: hidden;
|
||||
|
||||
background-color: var(--gray-a3);
|
||||
border-radius: var(--radius-max);
|
||||
|
||||
.bar {
|
||||
height: 100%;
|
||||
|
||||
background-color: var(--accent-9);
|
||||
transition-duration: var(--duration-brief);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { ComponentProps } from "react";
|
||||
import { classNames } from "../../ui/classNames";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
interface ProgressProps extends ComponentProps<"div"> {
|
||||
value: number;
|
||||
}
|
||||
|
||||
export function Progress({ value, className, ...props }: ProgressProps) {
|
||||
return (
|
||||
<div {...props} className={classNames(styles.progress, className)}>
|
||||
<div className={styles.bar} style={{ width: `${value}%` }} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user