Skip to content

TechWithTy/drawer-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published