Skip to main content

ActionItem
component

ActionItem has been deprecated. Please use the Button Component instead.

The ActionItem provides a tappable surface on the specified extension target as an entry point to an extension. Note that the text displayed on this 'ActionItem' is dependent on the description of the extension.

() => void
required

The callback that is executed when the user taps the ActionItem.

Deprecated

ActionItem has been deprecated. Use the Button component instead.

boolean

Sets whether or not the ActionItem can be tapped.

Deprecated

ActionItem has been deprecated. Use the Button component instead.

Was this section helpful?

Render an ActionItem in post purchase

import React from 'react';
import {
reactExtension,
useApi,
ActionItem,
} from '@shopify/ui-extensions-react/point-of-sale';

const PostPurchaseActionItem = () => {
const api = useApi<'pos.purchase.post.action.menu-item.render'>();

return (
<ActionItem
onPress={() => api.action.presentModal()}
enabled
/>
);
};

export default reactExtension(
'pos.purchase.post.action.menu-item.render',
() => <PostPurchaseActionItem />
);

Preview