The topnav layout provides a top navigation bar with a header and content area. It is useful for applications that need to display full width content. You can either use button style navigation links wuth dropdowns or a simple list of tabbed links.
<template>
<TairoTopnavLayout>
<TairoTopnavNavbar>
<TairoTopnavHeader>
<TairoTopnavContent />
</TairoTopnavHeader>
</TairoTopnavNavbar>
<TairoTopnavContent>
<slot />
</TairoTopnavContent>
</TairoTopnavLayout>
</template>
@theme {
--tairo-topnav-content-width: 100%;
}
| Prop | Type |
|---|---|
classdefault: - | unknown |
keydefault: - | PropertyKey |
refdefault: - | VNodeRef |
ref-fordefault: - | boolean |
ref-keydefault: - | string |
styledefault: - | unknown |
| Slot | Type |
|---|---|
#default | { isMobileOpen: any; } |
| Prop | Type |
|---|---|
classdefault: - | unknown |
keydefault: - | PropertyKey |
refdefault: - | VNodeRef |
ref-fordefault: - | boolean |
ref-keydefault: - | string |
styledefault: - | unknown |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
classdefault: - | unknown |
hidedefault: - | "scroll" | "scroll-down" |
keydefault: - | PropertyKey |
refdefault: - | VNodeRef |
ref-fordefault: - | boolean |
ref-keydefault: - | string |
styledefault: - | unknown |
| Slot | Type |
|---|---|
#default | {} |
| Prop | Type |
|---|---|
classdefault: - | unknown |
keydefault: - | PropertyKey |
refdefault: - | VNodeRef |
ref-fordefault: - | boolean |
ref-keydefault: - | string |
styledefault: - | unknown |
| Slot | Type |
|---|---|
#default | {} |