Overview
The<OrganizationList /> component displays a list of organizations that the user belongs to. It shows organization avatars, names, user roles, and includes a “Create Organization” action button.
Basic Usage
Props
Array of organization objects to display in the list.
ID of the currently active/selected organization.
Function to set the active organization ID when an organization is selected.
Organization Object
Unique identifier for the organization.
Display name of the organization.
User’s role within the organization (e.g., “Admin”, “Member”, “Owner”).
URL to the organization’s logo/avatar image.
What it includes
Organization Display
- Organization Avatar - Shows organization logo or generated initials
- Organization Name - Display name of the organization
- User Role - Shows the user’s role within each organization
- Active Indicator - Visual indicator for the currently selected organization
Interactive Features
- Organization Selection - Click to set active organization
- Create Organization Button - Action button to create new organizations
- Hover States - Visual feedback on organization items
- Responsive Design - Adapts to different screen sizes
Visual Features
- Avatar Fallback - Shows organization initials if no logo is provided
- Smooth Transitions - Animated hover and selection states
- Mobile Breakpoints - Responsive design for mobile devices
Related Components
<CreateOrganizationForm />- Form for creating new organizations<CreateOrganizationDialog />- Modal for organization creation<OrganizationSwitcher />- Organization switching interface<ManageOrganization />- Organization management interface
