DashboardMenuItem

The sidebar entry that links to the dashboard.

Installation

pnpm dlx shadcn@latest add @chelone/dashboard-menu-item

The sidebar entry that links to the dashboard.

Props

PropTypeDefaultDescription
classNamestring—Extra CSS class appended to the underlying menu button.
iconReactNode—Replaces the default `<House />` icon.
labelReactNode—Replaces the default translated label (`ra.page.dashboard`). Strings are translated (with the string as fallback); ReactNodes render as-is.
onClick() => void—Click handler invoked after the default navigation (e.g. close drawer).