Menu

トップレベルのアプリナビゲーションのためのレスポンシブで柔軟な構造を提供するナビゲーションコンポーネント。ドロップダウンサブメニューやさまざまなレイアウト(デスクトップトップ、サイドバー、ボトムタブ)をサポートします。

いつ使用するか

ナビゲーションメニューはウェブサイトにとって重要であり、ユーザーがサイトのセクション間を素早く移動するのに役立ちます。主に、トップナビゲーションとサイドナビゲーションが含まれます。トップナビゲーションはウェブサイトのすべてのカテゴリと機能を提供します。サイドナビゲーションはウェブサイトのマルチレベル構造を提供します。

デスクトップトップナビゲーション

デスクトップレイアウトに適したクラシックなトップナビゲーションバー。`desktopTop` バリアントを使用します。

サイドバーナビゲーション

ダッシュボードで通常使用される垂直のナビゲーション構造。

モバイルトップナビゲーション

モバイルレイアウト向けに特別に設計されたトップナビゲーションバー。

Mobile Content

ボトムタブナビゲーション

モバイルアプリケーションでよく使用され、画面の下部にナビゲーション要素を配置します。

API Reference

プロパティ
説明
タイプ
デフォルト

variant

The layout variant of the navigation bar. 'bottomTab' | 'mobileTop' | 'desktopSide' | 'desktopTop' 'bottomTab'

class

Additional CSS classes to apply to the Menu. string -
プロパティ
説明
タイプ
デフォルト

variant

The styling variant of the navigation item. 'sidebar' | 'sidebarActive' | 'bottomTab' | 'bottomTabActive' | 'desktopTop' | 'desktopTopActive' 'sidebar'

label

The text label for the navigation item. string -

href

The URL the item links to. string -

icon

The name of the Lucide icon to display. IconName -

showChevron

Whether to show a chevron icon when a submenu is present. boolean true

disabled

Whether the item is disabled. boolean false

nested

Whether this menu item is nested inside another menu item, adjusting its submenu placement. boolean false

class

Additional CSS classes to apply to the NavItem. string -