Skip to documentation

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

Live preview

Current component with fictional data. Example changes are not persisted.

1–8 of 72

  • member01@example.test

    Awaiting account
  • member02@example.test

    Account linked
  • member03@example.test

    Account linked
  • member04@example.test

    Awaiting account
  • member05@example.test

    Account linked
  • member06@example.test

    Account linked
  • member07@example.test

    Awaiting account
  • member08@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.

Maintained component API notes; current source is authoritative
Prop / partTypeRequirementResponsibility
page / pageCount / resultCount / totalnumbersRequiredCurrent filtered page, filtered count and full saved total.
onPage(page) => voidRequiredLocal 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.tsx

These 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.

All molecules
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.