mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 06:12:43 +02:00
30 lines
812 B
TypeScript
30 lines
812 B
TypeScript
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';
|