Component

Navbar

安装 Installation

这个页面没有单独的 registry:ui 安装名。

用法 Usage

import { Navbar } from "@timui/react"

className 与 variant、size 可以一起用。字段以 timkit agent inspect navbar --json 的 props 为准。

示例

Examples

一次看一个示例。左侧按名称筛选,预览里可切换源码和框架。

20 / 20

Navbar · Interactive State · 01

Loading preview...

结构化 API

Structured API

与 UCS schema 对齐的 props、逻辑机与多框架运行时。

Component

navbar

Logic

none

Runtime Frameworks

Not declared

Supported Platforms

WebWeChat Mini Program

Configuration

PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
Web, WeChat Mini ProgramPlatforms officially supported by this schema.
frameworks*
array
-Framework demos/code currently available in registry files.
dependencies
array
-Runtime package dependencies required by this registry item.
optionalPeerDependencies
array
-Optional peer dependencies used by this registry item.
registryDependencies
array
-Dependent Timkit registry components/hook entries.

TypeScript

来自 TypeScript 导出。

PropTypeDefaultDescription
fixed
boolean
-When `true`, forces the component position to remain fixed within its container.

Slots

PropTypeDefaultDescription
default
slot
-The navbar segments

Parts

PropTypeDefaultDescription
root*
root
-The navbar container
content
part
-The inner wrapper
brand
part
-The brand logo section
nav
part
-The navigation links section
item
part
-A single nav item
actions
part
-The actions section (e.g., buttons)
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.

该组件尚无扩展说明文档。

键盘与焦点

Keyboard

跨 React、Vue 与小程序共享的交互与可读名称约定。

  • An omitted name is Navigation.
  • A passed aria-label names the navigation. aria-labelledby suppresses that name.
  • In static HTML, Sign in and Get started are type button.
  • On the mini program, aria-labelledby leaves aria-label off.