Skip to main content

SkeletonText

SkeletonText is used to provide a low fidelity representation of text content before it appears on the page.

Optionally you can use any text content inside SkeletonText to be used as a base for the rendered skeleton

Anchor to inlineSize
inlineSize
Extract<, 'small' | 'base' | 'large'>

Adjust the length of the text when no children are passed.

Size of the text the skeleton replaces.

string

A unique identifier for the component.

Examples
import {
reactExtension,
SkeletonText,
} from '@shopify/ui-extensions-react/checkout';

export default reactExtension(
'purchase.checkout.block.render',
() => <Extension />,
);

function Extension() {
return <SkeletonText />;
}

Preview

Was this page helpful?