Loading indicator
Loading indicator
Component demo
Interactive example
Loading...
Loading...
<ic-loading-indicatortype="circular"label="Loading..."></ic-loading-indicator><ic-loading-indicatortype="linear"label="Loading..."></ic-loading-indicator>
<IcLoadingIndicatortype="circular"label="Loading..."/><IcLoadingIndicatortype="linear"label="Loading..."/>
Loading indicator details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
---|---|---|
|
The description that will be set as the aria-label of the loading indicator when not using a visible label. |
|
|
If |
|
|
The label to be displayed beneath the loading indicator. Display a changing label by supplying an array of messages. |
|
|
The time in milliseconds before the label changes. |
|
|
The maximum value that the progress value can take. Used to calculate the proportional width of the progress bar. |
|
|
The minimum value that the progress value can take. Used to calculate the proportional width of the progress bar. |
|
|
If |
|
|
The current amount of progress made. If not provided, component acts as an indeterminate loading indicator. |
|
|
The size of the loading indicator. |
|
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
|
The type of indicator, either linear or circular. |
|
The description that will be set as the aria-label of the loading indicator when not using a visible label. |
If |
The label to be displayed beneath the loading indicator. Display a changing label by supplying an array of messages. |
The time in milliseconds before the label changes. |
The maximum value that the progress value can take. Used to calculate the proportional width of the progress bar. |
The minimum value that the progress value can take. Used to calculate the proportional width of the progress bar. |
If |
The current amount of progress made. If not provided, component acts as an indeterminate loading indicator. |
The size of the loading indicator. |
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
The type of indicator, either linear or circular. |
CSS Custom Properties
|
|
---|---|
|
|
|
Variants
Sizes
Interactive example
Loading...
Loading...
Loading...
Loading...
<ic-loading-indicatortype="circular"label="Loading..."size="small"></ic-loading-indicator><ic-loading-indicatortype="circular"label="Loading..."size="large"></ic-loading-indicator><ic-loading-indicatortype="linear"label="Loading..."size="small"></ic-loading-indicator><ic-loading-indicatortype="linear"label="Loading..."size="large"></ic-loading-indicator>
<IcLoadingIndicatortype="circular"label="Loading..."size="small"/><IcLoadingIndicatortype="circular"label="Loading..."size="large"/><IcLoadingIndicatortype="linear"label="Loading..."size="small"/><IcLoadingIndicatortype="linear"label="Loading..."size="large"/>
Icon
Interactive example
<ic-loading-indicatorsize="icon"></ic-loading-indicator>
<IcLoadingIndicatorsize="icon"/>
Determinate
Interactive example
Progress 30%
Progress 30%
<ic-loading-indicatortype="circular"label="Progress 30%"progress="30"min="0"max="100"></ic-loading-indicator><ic-loading-indicatortype="linear"label="Progress 30%"progress="30"min="0"max="100"></ic-loading-indicator>
<IcLoadingIndicatortype="circular"label="Progress 30%"progress="30"min="0"max="100"/><IcLoadingIndicatortype="linear"label="Progress 30%"progress="30"min="0"max="100"/>
Theme
Interactive example
Loading
Loading
<ic-loading-indicatortype="circular"label="Loading"theme="dark"></ic-loading-indicator><ic-loading-indicatortype="linear"label="Loading"theme="dark"></ic-loading-indicator>
<IcLoadingIndicatortype="circular"label="Loading"theme="dark"/><IcLoadingIndicatortype="linear"label="Loading"theme="dark"/>
Changing label
Interactive example
<ic-loading-indicatortype="circular"label-duration="4000"></ic-loading-indicator><script> document.querySelector("ic-loading-indicator").label = [ "Loading...", "Still loading...", ];</script>
<IcLoadingIndicatortype="circular"label={["Loading...","Still loading..."]}labelDuration={4000}/>