CartCheckoutButton
The CartCheckoutButton component renders a button that redirects to the checkout URL for the cart. It must be a descendant of a CartProvider component.
Usage
import React from "react";
import { CartCheckoutButton } from "@airsoko/react";
const MyComponent = () => {
return <CartCheckoutButton>Checkout</CartCheckoutButton>;
};
export default MyComponent;Props
| Name | Type | Description |
|---|---|---|
children | ReactNode | A ReactNode element, usually the text for the button. |