UIPackage
Menu

Framework

Change language

Boilerplate repo

Team Switcher Sidebar

blocklayout

Full-featured app sidebar -- collapsible="icon" rail with TeamSwitcher header, primary nav, projects section, secondary nav, and user dropdown footer. Each section ships as a sibling file in the same folder so consumers can edit one piece at a time.

Also available for React ->

Installation

$npx shadcn-vue@latest add https://uipkge.dev/r/vue/sidebar-02.json
Named registry:npx shadcn-vue@latest add @uipkge/sidebar-02Installs to:app/components/blocks/sidebar-02/

Variants

Loading interactive previews…

Used by

Files installed (6)

  • app/components/blocks/sidebar-02/Sidebar02.vue2.8 kB
    <script setup lang="ts">
    import { BookOpen, Bot, Frame, LifeBuoy, Map, PieChart, Send, Settings2, SquareTerminal } from 'lucide-vue-next'
    
    import NavMain from './NavMain.vue'
    import NavProjects from './NavProjects.vue'
    import NavSecondary from './NavSecondary.vue'
    import NavUser from './NavUser.vue'
    import TeamSwitcher from './TeamSwitcher.vue'
    import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail } from '@/components/ui/sidebar'
    
    const data = {
      user: {
        name: 'shadcn',
        email: '[email protected]',
      },
      navMain: [
        {
          title: 'Playground',
          url: '#',
          icon: SquareTerminal,
          isActive: true,
          items: [
            {
              title: 'History',
              url: '#',
            },
            {
              title: 'Starred',
              url: '#',
            },
            {
              title: 'Settings',
              url: '#',
            },
          ],
        },
        {
          title: 'Models',
          url: '#',
          icon: Bot,
          items: [
            {
              title: 'Genesis',
              url: '#',
            },
            {
              title: 'Explorer',
              url: '#',
            },
            {
              title: 'Quantum',
              url: '#',
            },
          ],
        },
        {
          title: 'Documentation',
          url: '#',
          icon: BookOpen,
          items: [
            {
              title: 'Introduction',
              url: '#',
            },
            {
              title: 'Get Started',
              url: '#',
            },
            {
              title: 'Tutorials',
              url: '#',
            },
            {
              title: 'Changelog',
              url: '#',
            },
          ],
        },
        {
          title: 'Settings',
          url: '#',
          icon: Settings2,
          items: [
            {
              title: 'General',
              url: '#',
            },
            {
              title: 'Team',
              url: '#',
            },
            {
              title: 'Billing',
              url: '#',
            },
            {
              title: 'Limits',
              url: '#',
            },
          ],
        },
      ],
      navSecondary: [
        {
          title: 'Support',
          url: '#',
          icon: LifeBuoy,
        },
        {
          title: 'Feedback',
          url: '#',
          icon: Send,
        },
      ],
      projects: [
        {
          name: 'Design Engineering',
          url: '#',
          icon: Frame,
        },
        {
          name: 'Sales & Marketing',
          url: '#',
          icon: PieChart,
        },
        {
          name: 'Travel',
          url: '#',
          icon: Map,
        },
      ],
    }
    </script>
    
    <template>
      <Sidebar data-slot="sidebar-02" collapsible="icon">
        <SidebarHeader>
          <TeamSwitcher />
        </SidebarHeader>
        <SidebarContent>
          <NavMain :items="data.navMain" />
          <NavProjects :projects="data.projects" />
          <NavSecondary :items="data.navSecondary" class="mt-auto" />
        </SidebarContent>
        <SidebarFooter>
          <NavUser :user="data.user" />
        </SidebarFooter>
        <SidebarRail />
      </Sidebar>
    </template>
    
  • app/components/blocks/sidebar-02/TeamSwitcher.vue3.9 kB
  • app/components/blocks/sidebar-02/NavMain.vue2 kB
  • app/components/blocks/sidebar-02/NavProjects.vue2.6 kB
  • app/components/blocks/sidebar-02/NavSecondary.vue0.8 kB
  • app/components/blocks/sidebar-02/NavUser.vue4.5 kB

Raw manifest:https://uipkge.dev/r/vue/sidebar-02.json