V Vultra UI

Screen Sidebar Shell

Dual-viewport responsive application shell featuring a desktop collapsible sidebar and mobile slide-out drawer with 100% backdrop scrim, body scroll lock, and Escape key dismissal.

CLI Installation

npx @vultra/cli add screen-sidebar-shell

Usage

<script>
  import { ScreenSidebarShell } from '$lib/components/screen-sidebar-shell';
  import { LayoutDashboard, Receipt, Settings } from 'lucide-svelte';

  const navItems = [
    { label: 'Dashboard', href: '/dashboard', icon: LayoutDashboard },
    { label: 'Faktur', href: '/invoices', icon: Receipt, badge: '5' },
    { label: 'Pengaturan', href: '/settings', icon: Settings }
  ];
</script>

<ScreenSidebarShell appName="Vultra SaaS" {navItems}>
  <div class="p-6">
    <h1 class="text-2xl font-bold">Konten Halaman</h1>
  </div>
</ScreenSidebarShell>

Props

PropTypeDefaultDescription
appNamestring"Vultra Platform"Application brand title
appLogoTextstring"VP"2-letter logo badge
userNamestring"Antonius Joshua"User profile name
userRolestring"Administrator"User profile role
activeHrefstring"/dashboard"Active route path
navItemsNavItem[][...]Navigation items array with icons
onLogout() => voidundefinedCallback when logout button is tapped