shadcn-svelte for Svelte 5 has been released! - Visit the preview docs

Docs
Menubar

Menubar

A visually persistent menu common in desktop applications that provides quick access to a consistent set of commands.

Loading...

Installation

	npx  shadcn-svelte@latest add menubar

Usage

	<script lang="ts">
  import * as Menubar from "$lib/components/ui/menubar";
</script>
 
<Menubar.Root>
  <Menubar.Menu>
    <Menubar.Trigger>File</Menubar.Trigger>
    <Menubar.Content>
      <Menubar.Item>
        New Tab
        <Menubar.Shortcut>⌘T</Menubar.Shortcut>
      </Menubar.Item>
      <Menubar.Item>New Window</Menubar.Item>
      <Menubar.Separator />
      <Menubar.Item>Share</Menubar.Item>
      <Menubar.Separator />
      <Menubar.Item>Print</Menubar.Item>
    </Menubar.Content>
  </Menubar.Menu>
</Menubar.Root>