Organism composition
CompositionSix useful compositions made from persistent Cojeev base components, with organic assembly and native controls.
Try it
Add to your project
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/organism-composition.jsonThe command includes the component’s shared dependencies. Your project keeps editable source files.
Using organism composition
Choose profile, side-panel, dock, chat, focus or invite. Each layout uses the actual library primitives.
Use assembled={false} for the floating state. Keep the component mounted to retain local state while changing kinds.
Focus uses a real local elapsed-time countdown. Invite records local RSVP state; provide callbacks for your application.
API
Compose the exported parts below. The prop types are read from the React source during the registry build.
Native element or underlying primitive props are inherited where declared, including accessible labels, event handlers and refs.
OrganismCompositionProps
| Prop | Type | Required |
|---|---|---|
kind | OrganismKind | No |
assembledFalse separates the native roots into floating silhouettes. Quiet mode stays usable. | boolean | No |
name | string | No |
description | string | No |
initials | string | No |
itemsUp to four task or dock items. | OrganismItem[] | No |
durationSecondsReal local session length, clamped to 1–86400 seconds. Changing it resets the session. | number | No |
inviteDate | string | No |
inviteTime | string | No |
inviteLocation | string | No |
participants | {name:string;initials:string}[] | No |
state | OrganismState | No |
defaultState | Partial<OrganismState> | No |
onStateChange | (state:OrganismState)=>void | No |
onAction | (action:OrganismAction)=>void | No |
onSettledChange | (settled:boolean)=>void | No |
OrganismProps
| Prop | Type | Required |
|---|---|---|
name | string | No |
description | string | No |
assembledFalse separates the native roots into floating silhouettes. Quiet mode stays usable. | boolean | No |
initials | string | No |
itemsUp to four task or dock items. | OrganismItem[] | No |
durationSecondsReal local session length, clamped to 1–86400 seconds. Changing it resets the session. | number | No |
inviteDate | string | No |
inviteTime | string | No |
inviteLocation | string | No |
participants | {name:string;initials:string}[] | No |
state | OrganismState | No |
defaultState | Partial<OrganismState> | No |
onStateChange | (state:OrganismState)=>void | No |
onAction | (action:OrganismAction)=>void | No |
onSettledChange | (settled:boolean)=>void | No |
Accessibility
Moving controls remain inert until arrival, then regain normal keyboard, hover and form behavior.
Motion Off and reduced motion produce usable, unclipped components immediately.
States and appearance
For conditional content, keep a MotionPresence boundary around keyed MotionSurface children. The shared entrance and exit states work with native primitives and respect your motion preference.
Try pointer and keyboard interaction, and switch the appearance control in the navigation to compare light and dark mode. Motion respects reduced motion preferences.