CMS navigation and icons
Use area to put a collection behind a rail icon. Use group for the folders inside that area.
@@kinetic.collection(slug: "orders", label: "Orders", area: "operations", group: ["Sales"])Set cms.navigation in kinetic.config.ts. The landing is the collection that opens when an editor clicks the icon. If the editor cannot access it, the rail opens the first accessible collection in the area. An area with no accessible destinations is hidden.
import { defineNavigation } from '@kinetic/cms/navigation';
const navigation = defineNavigation({ rail: [ { id: 'operations', label: 'Operations', icon: 'inbox', landing: 'orders' }, { id: 'users', label: 'Users', icon: 'users', page: 'users' } ]});A direct page needs a visible navigation item with that slug. Set position: 'bottom' to pin an area above the profile. Translate rail labels through the same cms.i18n label map as collection labels.
Add a custom icon
Section titled “Add a custom icon”Place a Svelte component under src/lib and register its path under icons. The component can accept the optional aria-hidden prop and forward it to its SVG.
const navigation = defineNavigation({ icons: { dispatch: 'src/lib/icons/Dispatch.svelte' }, rail: [ { id: 'operations', label: 'Operations', icon: 'dispatch', landing: 'orders' } ]});TypeScript checks both built-in and custom icon names. Generation checks that each referenced component exists and emits one static import per used icon. Multiple entries can share one icon. The built-ins are books, inbox, orders, users, settings, and messages. Install @lucide/svelte in apps that use them.
Run bun run generate after changing the rail. A navigation change produces no SQL migration.