Skip to main content

TextBlock

TextBlock is used to render a block of text that occupies the full width available. Usually used to render paragraphs or text.


textblock
import {extend, TextBlock} from '@shopify/post-purchase-ui-extensions';

extend('Checkout::PostPurchase::Render', (root) => {
const textBlock = root.createComponent(TextBlock, undefined, 'Textblock');

root.appendChild(textBlock);
});
import {render, TextBlock} from '@shopify/post-purchase-ui-extensions-react';

render('Checkout::PostPurchase::Render', () => <App />);

function App() {
return <TextBlock>TextBlock</TextBlock>;
}

optional = ?

NameTypeDescription
size?"auto" | "fill" | numberSize of the text
emphasized?boolean
subdued?boolean
id?stringUnique identifier
appearance?"critical" | "warning" | "success"Changes the visual appearance

Was this page helpful?