Lemma Members
lemma/lemma-membersUnverifiedBlock
Pod member primitives plus a full members workspace for listing pod members, editing roles, removing access, and adding organization members into a pod.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/lemma-work/lemma-platform/main/lemma-typescript/lemma-members.jsonSource
1"use client"23import * as React from "react"4import { AlertCircle, Check, ChevronsUpDown, Loader2, RefreshCw, Search, ShieldPlus, User, UserPlus, Users, X } from "lucide-react"5import { Badge } from "@/components/lemma/ui/badge"6import { Button } from "@/components/lemma/ui/button"7import { Input } from "@/components/lemma/ui/input"8import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/lemma/ui/select"9import {10 Popover,11 PopoverContent,12 PopoverTrigger,13} from "@/components/lemma/ui/popover"14import { Skeleton } from "@/components/lemma/ui/skeleton"15import {16 useAddPodMember,17 useMembers,18 useOrganizationMembers,19 useRemovePodMember,20 useUpdatePodMemberRole,21} from "lemma-sdk/react"22import { PodRole, type LemmaClient, type OrganizationMember, type PodMember } from "lemma-sdk"23import { cn } from "@/components/lemma/lib/utils"2425export type LemmaMemberAppearance = "default" | "minimal" | "borderless" | "contained"26export type LemmaMemberDensity = "compact" | "comfortable" | "spacious"27export type LemmaMemberRadius = "none" | "sm" | "md" | "lg" | "xl"28export type LemmaMemberChipSize = "sm" | "md" | "lg"2930export interface LemmaMembersProps {31 client: LemmaClient32 podId?: string33 organizationId?: string34 enabled?: boolean35 title?: React.ReactNode36 description?: React.ReactNode37 searchPlaceholder?: string38 allowRoleEdit?: boolean39 allowRemove?: boolean40 allowAdd?: boolean41 defaultAddRole?: PodRole42 currentUserId?: string | null43 appearance?: LemmaMemberAppearance44 density?: LemmaMemberDensity45 radius?: LemmaMemberRadius46 className?: string47}4849export interface LemmaMemberChipProps {50 member?: PodMember | null51 userId?: string | null52 label?: React.ReactNode53 email?: string | null54 role?: React.ReactNode55 avatarUrl?: string | null56 size?: LemmaMemberChipSize57 appearance?: LemmaMemberAppearance58 radius?: LemmaMemberRadius59 className?: string60}6162export interface LemmaAvatarGroupProps {63 members: Array<PodMember | null | undefined>64 max?: number65 size?: LemmaMemberChipSize66 radius?: LemmaMemberRadius67 className?: string68}6970export interface LemmaMemberSelectProps {71 client: LemmaClient72 podId?: string73 value?: string | null74 onValueChange?: (userId: string | null, member: PodMember | null) => void75 enabled?: boolean76 placeholder?: string77 searchPlaceholder?: string78 clearable?: boolean79 appearance?: LemmaMemberAppearance80 density?: LemmaMemberDensity81 radius?: LemmaMemberRadius82// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from lemma
All 20 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Lemma Action Surfacelemma-action-surface | lemma | Blocks | Unverified | 4 deps | |
| Lemma Activity Feedlemma-activity-feed | lemma | Blocks | Unverified | 4 deps · 3 files | |
| Lemma Agent Conversation Experiencelemma-assistant-experience | lemma | Blocks | Unverified | 7 deps · 3 files | |
| Lemma Breadcrumbslemma-breadcrumbs | lemma | Blocks | Unverified | 3 deps | |
| Lemma Commentslemma-comments | lemma | Blocks | Unverified | 4 deps · 3 files | |
| Lemma Detail Panellemma-detail-panel | lemma | Blocks | Unverified | 4 deps · 7 files | |
| Lemma Document Workspacelemma-document-workspace | lemma | Blocks | Unverified | 6 deps | |
| Lemma File Browserlemma-file-browser | lemma | Blocks | Unverified | 4 deps |
