Skip to main content

SkeletonTextBlock

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

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

Anchor to skeletontextblockpropsSkeletonTextBlockProps

number
Default: 1

Number of lines to display when no children are passed.

Size of the text the skeleton replaces.

string

A unique identifier for the component.

Was this section helpful?

Basic SkeletonTextBlock

import {render, SkeletonTextBlock} from '@shopify/checkout-ui-extensions-react';

render('Checkout::Dynamic::Render', () => <Extension />);

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

Preview