CraftUI

Profile Screen

Ore UI's profile screen: preview, name, status and actions, with statistics and achievements in tabs.

Profile

SK

Skylark

Online
Friends
3
Followers
230
Achievements
130 / 131
2,950 / 2,960

Suggested next achievements

  • Shine Bright

    Find a sea gem deep underground

    10 points

Recently completed achievements

  • Bright Ideas

    Light up a cave with twenty torches

    20 points
  • Fresh From the Oven

    Bake your first loaf of bread

    10 points
Open on a page of its own

Installation

npx shadcn@latest add @runqora/craft-profile-screen

Usage

import { ProfileScreen } from "@/components/craft/blocks/profile-screen";

<ProfileScreen
  completed={completed}
  profile={{ name: "Skylark", status: "online" }}
  stats={[{ label: "Friends", value: "3" }]}
  suggested={suggested}
/>;

Props

ProfileScreen

Prop

Type

Accessibility

  • The player's name is a heading, and Overview and Stats are tabs.
  • Achievement points are read as points, such as "20 points".
  • The status is said in words as well as by color.

Customization

Suggested achievements sit under a blue heading and completed ones under a green one, as in Ore UI. Every screen fills its frame, so give it a height, such as h-dvh for a whole page.

Dependencies

  • craft-profile-panel, craft-screen and craft-tabs
  • shadcn's utils, and craft-theme

Source