Drawer

Pull-out order drawer with automated line-item rendering

Example

The example below uses the Launcher component to pass in drawer state. You can replace this with your own custom button/action if you'd like.

Drawer.jsx
import React from 'react';
import { Launcher, Drawer } from 'q3-ui-cart'; 

export default () => (
  <Launcher>
    {(close, isOpen) => (
      <Drawer
        checkoutPath="/checkout"
        close={close}
        isOpen={isOpen}
        shopPath="/shop"
        titleKey="title"                  
      >
        <LineItem />
      </Drawer>
    )}
  </Launcher>
);

API

Last updated