Skeleton

Grey placeholder shapes that shimmer where content is about to appear.

Options

Size

Code

import "./skeleton.css";

export function Skeleton({ lines = [45, 90, 70] }) {
  return (
    <div className="dh-skeleton" role="status" aria-label="Loading">
      <i className="dh-skeleton-circle" />
      <div>
        {lines.map((width, index) => (
          <i key={index} style={{ width: width + "%" }} />
        ))}
      </div>
    </div>
  );
}