1.0.9 • Published 3 months ago

@tabtree/react-family-products v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Family Products Drawer

A React component that displays product families in a sliding drawer.

Installation

npm install @tabtree/react-family-products

or

yarn add @tabtree/react-family-products

Usage

import React, { useState } from "react";
import { FamilyProducts } from "@tabtree/react-family-products";

function App() {
  const [drawerOpen, setDrawerOpen] = useState(false);

  return (
    <div>
      <button onClick={() => setDrawerOpen(true)}>Open Product Drawer</button>

      <FamilyProducts
        onOpen={drawerOpen}
        onDismiss={setDrawerOpen}
        emailId={emailId}
      />
    </div>
  );
}

export default App;

Props

PropTypeDescription
onOpenbooleanControls whether the drawer is open or closed
onDismissfunctionCallback function to close the drawer
emailIdstringbased on email fav products will list

Dependencies

This component requires the following peer dependencies:

  • react
  • react-dom
  • framer-motion
  • axios

License

MIT

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago