Design system / Molecules
Molecule / Member management
MemberPagination
MemberPagination combines a polite result range and bounded Previous/Next buttons for the invitee directory's eight-row local pages.
Live example
Current component with fictional data. Example changes are not persisted.
1–8 of 72
member01@example.test
Awaiting accountmember02@example.test
Account linkedmember03@example.test
Account linkedmember04@example.test
Awaiting accountmember05@example.test
Account linkedmember06@example.test
Account linkedmember07@example.test
Awaiting accountmember08@example.test
Account linked
Responsibility
Range feedback, previous/next controls and navigation semantics form one paging interaction. This is a feature molecule composed from existing Pagination and Button atoms.
Public contract
The table describes supported inputs, exported parts and caller responsibilities. A callback supplies a command, such as saving a draft. These notes are maintained manually; check current source types before integration.
| Prop / part | Type | Requirement | Responsibility |
|---|---|---|---|
| page / pageCount / resultCount / total | numbers | Required | Current filtered page, filtered count and full saved total. |
| onPage | (page) => void | Required | Local transition, not URL navigation. |
API notes are curated documentation, not generated types. The source linked above is the current implementation; update these notes alongside API changes.
State and behavior
Identify which values the caller controls and which behavior the component or underlying primitive owns. A local example does not supply persistence, authorization or a complete product lifecycle.
Eight invitees per page. The hook clamps pages after membership changes and resets to page one after search/status changes. The range uses a polite status announcement.
Dependencies
- Pagination, PaginationContent, PaginationItem
- Button
- Text
- MEMBER_PAGE_SIZE
Token and styling contract
These notes identify theme roles, utilities and direct style values used by the source. Direct colors or timings are implementation exceptions, not recommendations to bypass the theme.
outline / sm Button- Existing disabled and focus treatment.
text-supporting / text-text-muted- Compact range feedback.
flex-wrap / gap-3- Controls wrap rather than overflow.
Boundaries and limitations
- Buttons are used rather than anchors with invented URLs.
- The local drawer is not a shareable route or an additional tab interface.
Where to make a change
Keep page size and clamp logic aligned with the pure directory model and hook. Preserve full-scope totals when filters reduce results.
Selected real uses
MemberDirectorySheet
The hook supplies filtered counts, saved totals and bounded page commands.
src/components/members/memberDirectorySheet.tsxThese traces describe selected uses, not every dependency. Repository-only paths are shown as references; only approved files have public source views.
Usage contract
<MemberPagination page={directory.page} pageCount={directory.pageCount} resultCount={directory.resultCount} total={directory.counts.total} onPage={directory.goToPage} />Illustrative consumer bindings, not a self-contained product workflow. Live examples supply only local state or explicit fictional props.