Packages
react
components
CartCheckoutButton

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

NameTypeDescription
childrenReactNodeA ReactNode element, usually the text for the button.