UNPKG

@metamask/snaps-sdk

Version:

A library containing the core functionality for building MetaMask Snaps

31 lines 1 kB
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. */ 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%" /> */ export declare const Skeleton: import("../component.mjs").SnapComponent<SkeletonProps, "Skeleton">; /** * A Skeleton element. * * @see Skeleton */ export type SkeletonElement = ReturnType<typeof Skeleton>; //# sourceMappingURL=Skeleton.d.mts.map