@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
15 lines (14 loc) • 661 B
TypeScript
import React from 'react';
import { ISkeleton } from './types/skeleton';
declare const SkeletonBoundary: <V extends string | unknown>(props: ISkeleton<V>, ref: React.ForwardedRef<HTMLDivElement> | undefined | null) => JSX.Element;
/**
* @description
* Skeleton coponents is a loading component that can be used to show a loading state of a component.
* @param {React.PropsWithChildren<ISkeleton<V>>} props
* @returns {JSX.Element}
* @constructor
*/
declare const Skeleton: <V>(props: React.PropsWithChildren<ISkeleton<V>> & {
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;
}) => ReturnType<typeof SkeletonBoundary>;
export { Skeleton };