TechWithTy / drawer-flow

Reusable drawer component with search, pagination and list operations for React/TypeScript applications

Home Page:https://www.cybershoptech.com

Repository from Github https://github.comTechWithTy/drawer-flowRepository from Github https://github.comTechWithTy/drawer-flow

Drawer Flow

A self-contained, reusable drawer package for displaying and selecting items (e.g., properties) with search, pagination, and list operations (Create List and Add to List).

Installation

Placed under external/drawer-flow/. Import via alias paths (e.g., @/external/drawer-flow).

Public API

import { DrawerFlow } from '@/external/drawer-flow';
import type { DrawerItem, DrawerFlowProps, ListService } from '@/external/drawer-flow';

See types/ for all exported types.

Basic Usage

<DrawerFlow
  listService={listService}
  loadMore={({ pageSize }) => listService.loadMore({ pageSize })}
  defaultPageSize={12}
  pageSizeOptions={[12, 24, 48, 96]}
/>
  • Keep UI primitives from components/ui/* external.
  • Pass a listService implementation to integrate with your backend.

About

Reusable drawer component with search, pagination and list operations for React/TypeScript applications

https://www.cybershoptech.com


Languages

Language:TypeScript 100.0%