Skip to content

Loader

Loader components are used to indicate that content is being loaded or processed. They provide visual feedback to users while waiting for data to be fetched or actions to be completed.

Loading Code Block...

To get started, install Butterfly DS via aqua:

Loading Code Block...
Loading Code Block...
Loading Code Block...
sm
md
lg
xl
Loading Code Block...

PropsDefaultTypeDescription
variantspinnerspinner | progressThe variant of the loader.
textdefaultstringThe text to display alongside the loader.
PropsDefaultTypeDescription
sizemdsm | md | lg | xlThe size of the spinner loader.
PropsDefaultTypeDescription
width100%numberThe width of the progress bar.
value-numberThe current value of the progress bar.
showPercentagefalsebooleanWhether to show the percentage value above the progress bar.
percentagePositiontop-righttop-right | center | top-leftPosition of the percentage text relative to the progress bar.
icon
icon icon icon icon