NavigationRail

コンパクト/展開可能なサイドレール。NavigationRail.Item で主要目的地を配置します。

参考: Material Design 3 公式ガイドライン m3.material.io/components/navigation-rail/overview

Import

import { NavigationRail, ThemeProvider } from '@m3-baseui/react-tailwind';

使用例

<NavigationRail.Root defaultValue={['home']}>
<NavigationRail.Item value="home" icon={<Icon name="home" />}>ホーム</NavigationRail.Item>
</NavigationRail.Root>

Props

Prop既定値説明
defaultValue / valuereadonly string[]選択中の目的地