Skip to documentation

Design system / Organisms

Organism / Management and configuration

MemberDirectorySheet

Manage invitees in one modal directory with an optional owner-supplied invitation section, without another collapse or tab interface.

MembersOrganism

Intent and composition

Sheet supplies the modal boundary. This members-owned organism composes compact inline global counts, email/status filters, MemberList, eight-row pagination and directory feedback. Count label/value pairs wrap as whole controls without changing totals. MemberList supplies collection semantics and binds header/body slots; MemberCard owns each row's identity, badge and layout. Search and paging preserve source indices. The internal useMemberDirectoryFocus hook owns lost-focus recovery after entry changes, without replacing Radix or stealing focus from an active control. No account badge establishes permission or email delivery.

Coordinated concerns: A modal Sheet with optional invitation/guidance slots, global counts, email/status filters, eight-row MemberList pages, per-card header/body slots and separate invitation/action feedback.

useMemberDirectory owns transient browsing state. The caller supplies the full authorized list and feature commands; Sheet/Radix supplies modal mechanics, not access control.

Real component specimen

Real directory with 72 fictional records and no mutation or transport callback. Open, search, filter and page; close returns to its trigger.

Live preview

Real component, fictional data. Interactive callbacks remain local.

Fictional data. All changes are local to this specimen.

Supported inputs and ownership

MemberDirectorySheet input summary
InputResponsibility
directory / configThe useMemberDirectory result, including global counts, indexed page entries and browsing commands; explicit labels come from config.
invitation / description / invitationFeedback / highlightVersionOptional owner-supplied invitation section before counts, contextual guidance, outcome node below counts and acknowledged-addition animation version. The owner gates entry by invite capability and retains its draft outside the modal mount boundary. A standalone directory may omit them.
saving / loading / loadError / onRetrySource and mutation lifecycle supplied by the owner. Loading or failure does not become an empty-list claim.
error / noticeDirectory-action feedback only. Invitation errors stay beside invitation entry.
renderMemberActions / renderMemberBodyCallbacks for header controls and full-width card content. The directory forwards both slots without interpreting reviewer types.
onRemove / removeLabel / canRemoveMemberOptional removal command, accessible action labels and per-row presentation hints. The caller supplies permitted controls; the server independently enforces policy.
onRestoreFocus / headingRef / childrenThe owner restores focus to the actual opener. The focusable heading supports recovery after removal or nested confirmation. children can contain the owner's confirmation dialog.
portalContainerOptional HTMLElement or null forwarded to SheetContent. Tenant callers supply their owning theme scope; MemberManager resolves its nearest owner automatically. Standalone public use may omit it and retain the body default. Nested confirmation must use the same theme scope.

This is an integration summary, not a replacement for the implementation's complete prop types. A disabled control or hidden destination does not enforce permission.

Using it in a page

Integrate the section through its supported props and context requirements. Routes supply permitted data; instances bind product copy and behavior; templates arrange slots. Keep feature hooks and operations with their feature owner. Generic layouts must not load business data or enforce product policy.

Implementation

src/components/members/memberDirectorySheet.tsx
All organisms
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.