Block

Dashboard.

A TurtleDeck-style app shell: a collapsible sidebar with nav groups and a user menu, a header with breadcrumb and search, a stats row, a mining chart, a live console and a data table of turtles.

Installation#

$npx lanterncn add dashboard

This copies all 6 files into components/dashboard and installs every component it uses. With the shadcn CLI: npx shadcn@latest add httptim/lantern-ui/dashboard.

Usage#

Render it from any page.

import Dashboard from "@/components/dashboard/dashboard";

export default function Page() {
  return <Dashboard />;
}

The block owns the whole viewport, so the sidebar keeps its default fixed positioning. Below 768px it opens as a sheet from the header trigger.

The console answers help, fuel, pos, inv, home and clear.