UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

33 lines • 1.16 kB
import * as React from "react"; /** * Represents the configurable props for the Skeleton component. * * @remarks * Extends native `<div>` attributes so loading placeholders can be sized, annotated, * and composed freely while exposing a documented class override. */ interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> { /** * 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 `<div>` with the library's skeleton animation. Size it with layout * classes to mimic the eventual content and reduce perceived loading jank. * * @example * ```tsx * <Skeleton className="h-4 w-32" aria-label="Loading account name" /> * ``` * * @see {@link https://base-ui.com/react/overview Base UI documentation} */ declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>; export { Skeleton }; //# sourceMappingURL=skeleton.d.ts.map