@metamask/snaps-sdk
Version:
A library containing the core functionality for building MetaMask Snaps
34 lines • 1.08 kB
text/typescript
import type { BorderRadius } from "./utils.mjs";
/**
* The props of the {@link Skeleton} component.
*
* @param width - Width of the Skeleton.
* @param width - Height of the Skeleton.
* @param borderRadius - Border radius of the Skeleton.
* @category Component Props
*/
export type SkeletonProps = {
width?: number | string | undefined;
height?: number | string | undefined;
borderRadius?: BorderRadius | undefined;
};
/**
* A Skeleton component, which is used to display skeleton of loading content.
*
* @param props - The props of the component.
* @param props.width - Width of the Skeleton.
* @param props.width - Height of the Skeleton.
* @param props.borderRadius - Border radius of the Skeleton.
* @example
* <Skeleton height={32} width="50%" />
* @category Components
*/
export declare const Skeleton: import("../component.mjs").SnapComponent<SkeletonProps, "Skeleton">;
/**
* A Skeleton element.
*
* @see {@link Skeleton}
* @category Elements
*/
export type SkeletonElement = ReturnType<typeof Skeleton>;
//# sourceMappingURL=Skeleton.d.mts.map