Skip to content

Navbar 导航栏

Layout · Display component

Page navigation bars.

On-demand importwbbb-ui/components/navbar

Basic Usage

Example code
<script setup lang="ts">
import { WbbbNavbar } from 'wbbb-ui/components/navbar'
import 'wbbb-ui/styles/navbar'
</script>

<template>
  <WbbbNavbar />
</template>
Live mobile previewOpen in a new tab ↗

States and Interaction

All listed states can be operated and verified in the live Playground preview.

DefaultContent

API Reference

Props

PropertyDescriptionTypeDefaultRequired
borderControls whether a separator or border is displayed.booleantrueNo
fixedFixes the component to its viewport position.booleanfalseNo
leftArrowShows a back arrow on the left side.booleanfalseNo
leftTextSets the text shown on the left side.string''No
placeholderSets placeholder text when no value is present.booleanfalseNo
rightTextSets the text shown on the right side.string''No
safeAreaTopAdds padding for the device top safe area.booleantrueNo
titleSets the component title text.string''No

Events

  • clickLeft
  • clickRight

Slots

  • left
  • title
  • right

Two-way binding

Does not support v-model.

Platform Notes

Build verification: H5, App Vue, WeChat Mini Program, Alipay Mini Program, and Douyin Mini Program.

Runtime differences: H5 supports keyboard focus and reduced motion. Mini Programs provide equivalent touch interaction; verify upload, date selection, and overlays on target platforms.

Usage note: Use Playground to verify further state combinations and cross-platform behavior.

Wbbb UI · Built for uni-app product experiences