Skip to main content

Checkbox

Deprecated

Product subscription app extensions won't be supported as of December 3, 2025. You should migrate existing product subscription app extensions to purchase options extensions.

Checkboxes are most commonly used to give merchants a way to make a range of selections (zero, one, or multiple).

import {extend, ExtensionPoint, Checkbox} from '@shopify/admin-ui-extensions';

extend('Playground', (root) => {
const checkbox = root.createComponent(Checkbox, {
label: 'Opt in to something cool',
checked: true,
onChange: () => console.log('Checked'),
});

root.appendChild(checkbox);

root.mount();
});
import React from 'react';
import {extend, render, ExtensionPoint, Checkbox} from '@shopify/admin-ui-extensions-react';

function App() {
return (
<Checkbox label="Opt in to something cool" checked onChange={() => console.log('Checked')} />
);
}

extend(
'Playground',
render(() => <App />),
);

optional = ?

NameTypeDescription
label?stringLabel for the checkbox.
checked?booleanCheckbox is selected.
value?booleanAlias for checked, to support iterating over multiple types of form fields. If both checked and value are used, checked is the source of truth.
onChange?(value: boolean) => void | Promise<void>Callback when checkbox is toggled.

✅ Do🛑 Don't
Use Checkboxes to give merchants a multi select choiceHorizontally stack Checkboxes
Vertically align Checkboxes

For more guidelines, refer to Polaris' Checkbox best practices.


Was this page helpful?