add Mantine progress component

This commit is contained in:
jeffvli
2026-05-12 21:43:35 -07:00
parent 6e634972c9
commit 4226da94ec
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,7 @@
.root {
width: 100%;
}
.section {
transition: width 0.15s ease-out;
}
@@ -0,0 +1,29 @@
import type { ProgressProps as MantineProgressProps } from '@mantine/core';
import { Progress as MantineProgress } from '@mantine/core';
import { forwardRef } from 'react';
import styles from './progress.module.css';
export interface ProgressProps extends MantineProgressProps {}
export const Progress = forwardRef<HTMLDivElement, ProgressProps>(
({ classNames, style, ...props }, ref) => {
return (
<MantineProgress
classNames={{
root: styles.root,
section: styles.section,
...classNames,
}}
ref={ref}
style={{
...style,
}}
{...props}
/>
);
},
);
Progress.displayName = 'Progress';