All components

Shimmer Loader

Shimmer Loader is a React and Tailwind CSS effect component from UI Layouts, licensed MIT. Copy it and paste it into your project.

UI Layouts MIT effects

What it is

Shimmer Loader is a React and Tailwind CSS effect component from UI Layouts, licensed MIT. Copy it and paste it into your project.

How to use it

Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.

Open in the catalogue

Five free copies a month. No card.

No packages beyond the project baseline

Licence

This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Shimmer Loader

./registry/components/shimmer-loader.tsx
'use client';
import { ShimmerLoader } from '@/components/ui/shimmer-loader';
import { useState } from 'react';

export default function ShimmerLoaderDemo() {
  const [key, setKey] = useState(0);

  const handleComplete = () => {
    console.log('Animation complete');
    setKey((prev) => prev + 1);
  };

  return (
    <div className='p-10 flex flex-col gap-5 max-w-3xl mx-auto bg-black'>
      <ShimmerLoader
        key={key}
        labels={['Analysing.', 'Analysing..', 'Analysing...']}
        icons={['✦', '◆', '✶', '❋', '✸']}
        duration={3000}
        tokenTarget={0.16}
        showPercent={true}
        fontSize={14}
        paddingY={4}
        cellPadding={2}
        textClassName='text-purple-200/90'
        onComplete={handleComplete}
      />
      <ShimmerLoader
        key={key + 1}
        labels={['Booting…', 'Loading…', 'Preparing…', 'Initializing…']}
        icons={['✦', '◆', '✶', '❋', '✸']}
        duration={3000}
        tokenTarget={0.8}
        showPercent={true}
        fontSize={14}
        paddingY={4}
        cellPadding={2}
        textClassName='text-purple-200/90'
        onComplete={handleComplete}
      />
      <ShimmerLoader
        key={key + 2}
        labels={['Syncing…', 'Configuring…', 'Setting up…', 'Onboarding…']}
        icons={['◈', '◉', '⬡', '⬢', '◍']}
        duration={3000}
        tokenTarget={0.92}
        showPercent={true}
        fontSize={14}
        paddingY={4}
        cellPadding={2}
        textClassName='text-purple-200/90'
        onComplete={handleComplete}
      />
    </div>
  );
}

Similar components