import * as React from "react"; import {cn} from "@/lib/utilities"; import styles from "./skeleton.module.css"; /** * Represents the configurable props for the Skeleton component. * * @remarks * Extends native `
` attributes so loading placeholders can be sized, annotated, * and composed freely while exposing a documented class override. */ interface SkeletonProps extends React.HTMLAttributes { /** * Additional CSS classes merged with the default skeleton shimmer styles. */ className?: string; } /** * A loading placeholder used while content is being fetched or prepared. * * @remarks * **Rendering Context**: Server- and client-compatible presentational component. * * Renders a styled `
` with the library's skeleton animation. Size it with layout * classes to mimic the eventual content and reduce perceived loading jank. * * @example * ```tsx * * ``` * * @see {@link https://base-ui.com/react/overview Base UI documentation} */ const Skeleton = React.forwardRef(({className, ...props}, ref) => (
)); Skeleton.displayName = "Skeleton"; export {Skeleton};