Mood Picker
Life · MoodPicker, Card
A five-step mood scale with faces and words, as a radio group.
value/onChangewith levels 1 (lowest) to 5;levelsreplaces the five words.compactshows only the faces; the words stay as accessible names.- The picked level takes its tint and a ring, so it never depends on colour alone.
Props
MoodPicker
| Prop | Type | Notes |
|---|---|---|
value? | MoodLevel | null | |
defaultValue? | MoodLevel | null | |
onChange? | (mood: MoodLevel) => void | |
label? | ReactNode | The question (default "How are you feeling?"). |
levels? | [string, string, string, string, string] | Words for the five levels, lowest first (default Awful, Low, Okay, Good, Great). |
compact? | boolean | Only the faces; the words stay as accessible names. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |
Card
| Prop | Type | Notes |
|---|---|---|
title? | string | |
description? | string | |
meta? | string[] | |
corner? | ReactNode | |
status? | ReactNode | |
actions? | ReactNode[] | |
tint? | Tint | "surface" | |
onClick? | () => void | |
children? | ReactNode | |
eyebrow? | ReactNode | |
surface? | Surface | `"glass"`: translucent glass over what is behind (maps, 3D, video, photos); `"solid"` opts out inside a glass `UIProvider`. |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |