Shimmer Loader

An animated shimmer loader component with customizable labels, icons, and progress indicators. Features smooth shimmer effects, token counters, and percentage displays for modern loading states and progress animations.

0.0k
0.0k
0.0k

Installation

npx uilayouts@latest add shimmer-loader

This shimmer loader installation process integrates seamlessly with React applications, providing smooth loading animations and progress indicators for modern web interfaces.

Props

PropTypeDefaultDescription
labelsstring[]-Array of label texts to cycle through during loading
iconsstring[]-Array of icon characters to display alongside labels
durationnumber-Total animation duration in milliseconds
tokenTargetnumber-Target token count for display (optional)
showPercentbooleantrueWhether to show percentage progress
fontSizenumber14Font size in pixels for the loader text
paddingYnumber4Vertical padding inside each character cell
cellPaddingnumber2Number of blank cells on each side of labels
textClassNamestring'text-purple-200/90'Tailwind class for text color
onCompletefunction-Callback function when animation completes

These comprehensive props enable complete customization of your shimmer loader components, making them perfect for loading states, progress indicators, and interactive user feedback systems.

Example

Basic Shimmer Loader

0.0k
0.0k
0.0k

This basic shimmer loader demonstrates smooth text animations with customizable labels and icons, perfect for loading screens and progress indicators in modern web applications.

Advanced Usage

The shimmer loader component supports various configurations including token counters, percentage displays, and custom styling options, making it ideal for dashboard applications, form submissions, and data processing workflows.