Components
Shimmer

Shimmer

The Shimmer component is used to create a shimmer or loading effect that mimics a content placeholder. It is often used to indicate that content is loading or as a placeholder for content that is yet to be fetched.

Props

NameTypeDefaultDescription
widthstringThe width of the shimmer element.
heightstringThe height of the shimmer element.
borderRadiusstringThe border radius of the shimmer element.
classNamestringAdditional CSS classes to apply to the shimmer element.

Try It

import { Shimmer } from '@kloktun/uikit'

export default function ShimmerExample() {
    return (
        <div className="flex flex-row gap-4">

            <Shimmer width="100px" height="100px" />

            <Shimmer width="50%" height="16px" borderRadius="4px" className="mb-2" />
            
        </div>
    );
}