apps/mantine.dev/src/pages/core/progress.mdx
import { ProgressDemos } from '@docs/demos'; import { Layout } from '@/layout'; import { MDX_DATA } from '@/mdx';
export default Layout(MDX_DATA.Progress);
Set transitionDuration to a number of milliseconds to enable width transition:
role="progressbar" attributearia-valuenow attribute with the current valuearia-valuemin and aria-valuemax attributes are always set to 0 and 100 as the component does not support other valuesSet the aria-label attribute to label the progress:
import { Progress } from '@mantine/core';
function Demo() {
return <Progress aria-label="Uploading progress" value={10} />;
}
function DemoCompound() {
return (
<Progress.Root>
<Progress.Section aria-label="Uploading progress" value={10} />
</Progress.Root>
);
}