generated from trevortylerlee/astro-micro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c5e32b
commit 9d8ba06
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: "Checkout UI Extension Card" | ||
description: "How to add a component with a white background to the Shopify Checkout UI" | ||
date: "2024-11-25" | ||
--- | ||
|
||
It seems like a simple task, but it took me a while to figure out how to add a component with a white background in the Shopify Checkout UI. | ||
|
||
After some research, I found that the solution is actually quite simple. The right component is `Card`, but it doesn't come from the `@shopify/ui-extensions-react/checkout` package. | ||
|
||
Instead, it comes from the `@shopify/ui-extensions-react/customer-account` package, as the order status page is part of the customer account pages and resides in that context. | ||
|
||
Copy the code below: | ||
|
||
```js | ||
import { Card } from "@shopify/ui-extensions-react/customer-account"; | ||
``` |