Navigation bar component with customizable layout and slots for left, center, and right content.
Interactive preview
Rendered from the shared Frontfriend stories with React Base, the same
preview Studio shows. Styling comes from your Design System; the code below
is native to Reka UI.
Installation
Complete project setup first. Your configuration
must select vue/reka and include your Design System ID.
pnpm exec frontfriend download navbar -f vue --primitive reka
Review dependencies reported by the downloader and keep your source
changes in version control.
Usage
<script setup lang="ts">import { Navbar } from "@/components/ui/navbar";import { NavbarLeft } from "@/components/ui/navbar";import { NavbarCenter } from "@/components/ui/navbar";import { NavbarRight } from "@/components/ui/navbar";import { Button } from "@/components/ui/button";const args = { "type": "relaxed", "title": "Workspace", "action": "Contact us",};</script><template> <Navbar ><NavbarLeft>Acme</NavbarLeft><NavbarCenter>{{ args.title }}</NavbarCenter ><NavbarRight ><Button variant="secondary">{{ args.action }}</Button></NavbarRight ></Navbar ></template>
Examples
Main
<script setup lang="ts">import { Navbar } from "@/components/ui/navbar";import { NavbarLeft } from "@/components/ui/navbar";import { NavbarCenter } from "@/components/ui/navbar";import { NavbarRight } from "@/components/ui/navbar";import { Button } from "@/components/ui/button";const args = { "type": "relaxed",};</script><template> <Navbar ><NavbarLeft>Acme</NavbarLeft><NavbarCenter>Workspace</NavbarCenter ><NavbarRight ><Button variant="secondary">Contact us</Button></NavbarRight ></Navbar ></template>
Frontfriend-owned props. Native HTML and inherited primitive props
remain documented by Reka UI.
Navbar
Prop
Type
Default
Description
class
string
—
containerClass
string
—
density
"compact" | "relaxed"
—
title
string
—
NavbarCenter
Prop
Type
Default
Description
class
HTMLAttributes["class"]
—
textClass
HTMLAttributes["class"]
—
NavbarExternal
Prop
Type
Default
Description
class
HTMLAttributes["class"]
—
NavbarLeft
Prop
Type
Default
Description
class
HTMLAttributes["class"]
—
NavbarRight
Prop
Type
Default
Description
class
HTMLAttributes["class"]
—
Configuration determines the actual classes and available styling hooks.
See Theming & component configuration before introducing
a repeated local override.