All components

Skeleton

Skeleton is a React and Tailwind CSS feedback component from HextaUI, licensed MIT. Copy it and paste it into your project.

HextaUI MIT feedback

What it is

Skeleton is a React and Tailwind CSS feedback component from HextaUI, 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 HextaUI and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.

Skeleton

registry/new-york/ui/skeleton.tsx
import * as React from "react";
import { cn } from "@/lib/utils";

const Skeleton = React.forwardRef<HTMLDivElement, React.ComponentProps<"div">>(
  function Skeleton({ className, ...props }, ref) {
    return (
      <div
        aria-hidden="true"
        className={cn(
          "animate-pulse rounded-xl bg-accent motion-reduce:animate-none",
          className
        )}
        data-slot="skeleton"
        ref={ref}
        {...props}
      />
    );
  }
);

export { Skeleton };

Similar components