UNPKG

@vtex/admin-ui

Version:

> VTEX admin component library

24 lines (23 loc) 917 B
import type { ComponentPropsWithRef } from 'react'; /** * Represents a UI that doesn’t contain actual content; instead, it shows the loading elements of a page in a shape similar to actual content. * It show users that content is loading, offering a vague preview of how content will look once it fully loads. * It's beeing used internally by AdminUI to handle the loading state of specyfic components. * @example * import { Skeleton } from 'admin-ui' * * const useFetch; ** hook that fetches content ** * * function Component() { * const { loading, data } = useFetch() * return loading ? <Skeleton csx={{ ... }} /> : <h1>{data}</h1> * } * */ export declare const Skeleton: import("@vtex/admin-ui-react").AdminUIJsxElement<"div", {}, { shape: { rect: any; circle: any; }; }>; export declare type SkeletonProps = ComponentPropsWithRef<typeof Skeleton>;