Skip to main content

Settings

The API for interacting with merchant settings.

The base API object provided to purchase extension targets.

Anchor to settings
settings
StatefulRemoteSubscribable<>
required

The settings matching the settings definition written in the shopify.extension.toml file.

Refer to settings examples for more information.

Note

When an extension is being installed in the editor, the settings will be empty until a merchant sets a value. In that case, this object will be updated in real time as a merchant fills in the settings.

Returns the setting values defined by the merchant for the extension.

Partial<Settings extends >
Examples
import {
reactExtension,
Banner,
useSettings,
} from '@shopify/ui-extensions-react/checkout';

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

function Extension() {
const {banner_title} = useSettings();
return <Banner title={banner_title} />;
}
Was this page helpful?