Character Info
A character sheet: portrait with level, name and title, XP, bars for health, energy or mood, status chips, attributes with gear bonuses and equipment slots. A compact variant fits a HUD or party list.
Equipment slots show item tooltips and call onEquipmentSelect. Locked slots are dashed.
12
Mai
Rice farmerRare
- Well fed
- Rain soon
Wakes before the roosters. Knows every paddy by name.
- Strength
- 12+2
- Craft
- 9
- Charm
- 14+3
- Luck
- 7
Head
Tool
Charm
Pet
Installation
Usage
Examples
Compact party
variant="compact" keeps portrait, name, level and bars.
12
Mai
Rice farmer
9
Bao
Fisher
15
Lan
Lantern maker
API
Everything else is passed through to the underlying element or Radix primitive.
| Prop | Type | Default | Description |
|---|---|---|---|
character | Character | – | { name, title?, portrait?, level?, xp?, rarity?, bars?, attributes?, status?, equipment?, description? }. |
variant | "full" | "compact" | "full" | Compact shows portrait, name, title, XP and bars only. |
onEquipmentSelect / selectedEquipment | (slot) => void / string | – | Click on an equipment slot, and highlight one (e.g. where a selected item would go). |
bars[].tone | "success" | "info" | "reward" | "primary" | "danger" | CSS colour | "success" | Bar colour. |
attributes[].bonus | number | – | Shown as +n in green or -n in red next to the value. |
actions / children / renderPortrait | ReactNode / fn | – | Buttons under the card, extra sections, or your own portrait (a sprite, a 3D canvas). |
slotSize / tooltip / rarities | number / boolean / Record | 56 / true | Equipment tile size, item tooltips and custom rarities. |