Skip to content
Install

Graft UI slots

A graft’s UI module default-exports defineGraft({ slots, screens }). Each slot takes a list. Mount functions get an empty element, the slot’s props and the host object, and return a cleanup function. {org} in a navigation href is replaced with the current organization’s slug.

8 slots are available.

SlotContributes
nav.primaryNavigation links: { id, label, href, icon?, order?, visible? }
admin.navNavigation links: { id, label, href, icon?, order?, visible? }
user.settings.tabsTabs: { id, label, mount, order?, visible? }, mounted with no props
org.settings.tabsTabs: { id, label, mount, order?, visible? }, mounted with { orgId, orgSlug }
org.usage.tabsTabs: { id, label, mount, order?, visible? }, mounted with { orgId, orgSlug }
deployment.tabsTabs: { id, label, mount, order?, visible? }, mounted with { orgId, orgSlug, projectId, projectSlug, deploymentId }
deployment.overview.cardsCards: { id, mount, order?, visible? }, mounted with { orgId, orgSlug, projectId, projectSlug, deploymentId }
project.overview.cardsCards: { id, mount, order?, visible? }, mounted with { orgId, orgSlug, projectId, projectSlug }