CraftUI

Game Dashboard

A live dashboard for a world or server: status, numbers, resource bars, weather and time controls, and the latest events.

Dashboard

Riverside

Online
Players online
4of 20
Uptime
3d 4h
Chunks loaded
1,284+12 today

World controls

Weather
Hour of day
12

Resources

Memory
x
Storage
x
Tick rate
x

Latest events

TimePlayerEvent
12:04Pebblefound a sea gem
11:58Pebblejoined the world
11:30WorldBacked up the world
Open on a page of its own

In the style of the forms Ore UI shows in game, such as a live world dashboard.

Installation

npx shadcn@latest add @runqora/craft-game-dashboard

Usage

import {
  GameDashboard,
  GameDashboardAction,
} from "@/components/craft/blocks/game-dashboard";

<GameDashboard
  actions={<GameDashboardAction onClick={restart}>Restart</GameDashboardAction>}
  hour={hour}
  onHourChange={setHour}
  onWeatherChange={setWeather}
  status="online"
  weather={weather}
  worldName="Riverside"
/>;

Props

GameDashboard

Prop

Type

Accessibility

  • The numbers are terms and values, the bars are progress bars named by their labels, and the events are a table.
  • The status is a tag with words, such as Online, not only a color.

Customization

The block keeps only what's on screen, such as the search text. Your data comes in through props, and every action calls one of your handlers, so it works with any backend. Every screen fills its frame, so give it a height, such as h-dvh for a whole page.

Dependencies

  • craft-badge, craft-button, craft-panel, craft-progress, craft-screen, craft-select, craft-slider and craft-table
  • shadcn's utils, and craft-theme

Source