Navbar, corners


Install
npx shadcn add @klarhimmel/navbar-cornersDetailsAbout, usage, props and more
Brand top-left and links top-right above a wide picture, with the call to action bottom-left and a menu icon link bottom-right laid over the picture.
Import
Import
- navigation/corners
- header/corners
- About
- Brand top-left and links top-right above a wide picture, with the call to action bottom-left and a menu icon link bottom-right laid over the picture. On a phone the picture is taller and the row above wraps.
- Category
- The bar at the top of every page: brand, links, one action. New project? Set it up once: /get-started/installation.
Notes
When to use it
Pick it for a landing page that opens on a picture with the brand and links above it, the main action in the picture's lower left and a menu link in its lower right. Pick navbar-simple for a plain bar with no picture, or navbar-overlay-menu when the menu should open over the page.
Writing for it
- Brand up to 40 characters, up to 6 links of 40 characters each. - Main action label up to 40 characters; menu label is read by screen readers only. - The picture needs a real image; the corner controls sit on it.
Watch out for
A busy or dark picture hides the white menu circle and the action. Pick a calm image, and point the menu link at a real page, because it is a link and opens nothing by itself.
Pairs well with
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
Props
The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.
| Prop | Type | Default | Description |
|---|---|---|---|
brand | string | 'Brand name' | Text, up to 40 characters. |
links | Link[] | 3 items | List of up to 6. |
media | Media | {…} | See the type. |
cta | Link | {…} | See the type. |
menu | Link | {…} | See the type. |