NavigationMenu
Open rich navigation panels from a coordinated horizontal trigger list.
Open rich navigation panels from a coordinated horizontal trigger list.
Contract
| Axis | Contract |
|---|---|
| Layer size | layerSize sizes each complete navigation panel. The default uses the fixed navigation-panel width token; height follows content until the safe viewport clamps it. |
Install
Add the package, then import its public library.
flutter pub add tinyrack_uiimport 'package:tinyrack_ui/tinyrack_ui.dart';Playground
Usage
import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';
TRNavigationMenu<String>(
items: const [
TRNavigationMenuItem(value: 'docs', trigger: Text('Docs'), content: Text('Guides')),
],
)API
Layer properties
| Prop | Type / default | Purpose |
|---|---|---|
layerSize | TRLayerSize · fixed navigationPanelWidth / content height | Replaces the former panel-only width with one policy for the complete anchored layer. |