MDUIDocsEnglish简体中文LightDarkSystem
Preset Colors
Custom Color
Extract Color from Wallpaper
Select a Wallpaper
Getting Started
Styles
Frameworks
Components
Avatar Badge BottomAppBar Button ButtonIcon Card Checkbox Chip CircularProgress Collapse Dialog Divider Dropdown Fab Icon Layout LinearProgress List Menu NavigationBar NavigationDrawer NavigationRail Radio RangeSlider Select SegmentedButton Slider Snackbar Switch Tabs TextField Tooltip TopAppBar
Functions
Libraries

LinearProgress

Linear progress indicators are horizontal bars that display the status of ongoing operations, such as data loading or form submission.

Usage

Import the component:

import 'mdui/components/linear-progress.js';

Import the TypeScript type:

import type { LinearProgress } from 'mdui/components/linear-progress.js';

Example:

<mdui-linear-progress></mdui-linear-progress>

Examples

Determinate Progress

By default, the linear progress indicator is in an indeterminate state. Use the value attribute to set the current progress. The default maximum progress value is 1.

Set the maximum progress value with the max attribute.

API

Properties

AttributePropertyReflectTypeDefault
maxmaxnumber1

Sets the maximum value for the progress indicator. The default value is 1.

valuevaluenumber-

Sets the current value of the progress indicator. If not specified, the progress indicator is in an indeterminate state.

CSS Parts

Name
indicator

The indicator part.

CSS Custom Properties

Name
--shape-corner

The size of the component corner. You can use a specific pixel value, but it's recommended to reference design tokens.

On this page