BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/basecn/menubar

Menubar

basecn/menubar
FreeComponent

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

Live preview

live · rendered by the registry
Rendered by basecn on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://basecn.dev/r/menubar.json

Source

src/registry/components/ui/menubar.tsxbasecn.dev/r/menubar.json · first 6 KB
1import { Menu as MenuPrimitive } from "@base-ui/react/menu";
2import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar";
3import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
4import * as React from "react";
5
6import { cn } from "@/lib/utils";
7
8function Menubar({ className, ...props }: MenubarPrimitive.Props) {
9 return (
10 <MenubarPrimitive
11 data-slot="menubar"
12 className={cn(
13 "bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",
14 className
15 )}
16 {...props}
17 />
18 );
19}
20
21function MenubarMenu({ ...props }: MenuPrimitive.Root.Props) {
22 return <MenuPrimitive.Root data-slot="menubar-menu" {...props} />;
23}
24
25function MenubarGroup({ ...props }: MenuPrimitive.Group.Props) {
26 return <MenuPrimitive.Group data-slot="menubar-group" {...props} />;
27}
28
29function MenubarPortal({ ...props }: MenuPrimitive.Portal.Props) {
30 return <MenuPrimitive.Portal data-slot="menubar-portal" {...props} />;
31}
32
33function MenubarRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props) {
34 return (
35 <MenuPrimitive.RadioGroup data-slot="menubar-radio-group" {...props} />
36 );
37}
38
39function MenubarTrigger({ className, ...props }: MenuPrimitive.Trigger.Props) {
40 return (
41 <MenuPrimitive.Trigger
42 data-slot="menubar-trigger"
43 className={cn(
44 "focus:bg-accent focus:text-accent-foreground data-[popup-open]:bg-accent data-[open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
45 className
46 )}
47 {...props}
48 />
49 );
50}
51
52function MenubarPositioner({
53 align = "start",
54 alignOffset = -4,
55 sideOffset = 8,
56 className,
57 ...props
58}: MenuPrimitive.Positioner.Props) {
59 return (
60 <MenubarPortal>
61 <MenuPrimitive.Positioner
62 data-slot="menubar-positioner"
63 align={align}
64 alignOffset={alignOffset}
65 sideOffset={sideOffset}
66 className={cn("z-50", className)}
67 {...props}
68 />
69 </MenubarPortal>
70 );
71}
72
73function MenubarContent({ className, ...props }: MenuPrimitive.Popup.Props) {
74 return (
75 <MenuPrimitive.Popup
76 data-slot="menubar-content"
77 className={cn(
78// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • lucide-react

Files it writes

  • src/registry/components/ui/menubar.tsx

Facts

Registry
basecn
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on basecn basecn.dev akash3444/basecn on GitHub Raw registry item This item as JSON

More from basecn

All 56 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionbasecnComponentsFree2 deps
AlertalertbasecnComponentsFree1 dep
Alert Dialogalert-dialogbasecnComponentsFree1 dep
Aspect Ratioaspect-ratiobasecnComponentsFreeno deps
AutocompleteautocompletebasecnComponentsFree2 deps
AvataravatarbasecnComponentsFree1 dep
BadgebadgebasecnComponentsFree2 deps
BreadcrumbbreadcrumbbasecnComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex