DashboardMenuItem
The sidebar entry that links to the dashboard.
Installation
pnpm dlx shadcn@latest add @chelone/dashboard-menu-itemThe sidebar entry that links to the dashboard.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | Extra CSS class appended to the underlying menu button. |
| icon | ReactNode | — | Replaces the default `<House />` icon. |
| label | ReactNode | — | 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). |