import {createRemoteComponent} from '@remote-ui/core'; import {MaybeResponsiveConditionalStyle} from '../../style'; import type {IdProps} from '../shared'; export interface SkeletonImageProps extends IdProps { /** * Adjust the block size of the skeleton. */ blockSize?: MaybeResponsiveConditionalStyle; /** * Adjust the inline size of the skeleton. */ inlineSize?: MaybeResponsiveConditionalStyle; /** * Displays the skeleton at the specified aspect ratio (fills the width of the * parent container and sets the height accordingly). */ aspectRatio?: number; } /** * SkeletonImage is used to provide a low fidelity representation of an image before it appears on the page. */ export const SkeletonImage = createRemoteComponent< 'SkeletonImage', SkeletonImageProps >('SkeletonImage');