Skip to Content
SmartUI

Dock

Floating bottom navigation for the app: three or four destinations.

Usage

import { Dock } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • The top-level destinations of the app.

When not to use

  • More than four destinations.

Props

PropTypeDefaultDescription
items{ key, label, icon, badge? }[]required
selectedKeystringrequired
onSelectionChange(key) => void-

Accessibility

  • Each item is at least 48 px tall and marked current when active.

On this page