Skip to content
Mizen UI
Docs

IntroductionInstallationCLIStylingFoundationsThemingCompositionIntegrationsAccessibilityFor agents

useCopyToClipboard

AccordionAspect RatioCardCollapsibleFrameGridGroupInlineScroll AreaSectionSeparatorSpacerStack

BlockquoteCitationCodeHeadingKbdLabelLinkTextVisually Hidden

ButtonButton GroupToggleToggle groupToolbar

CalendarCheckboxCheckbox groupComboboxDate pickerDate range pickerDate-Time InputFieldFieldsetFile UploadFormInputInput groupNumber fieldOTP FieldRadio groupSelectSliderSwitchTextareaTime Input

BreadcrumbMenubarNavigation MenuPaginationSegmented ControlStepperTabs

Alert dialogCommandContext MenuDialogDrawerMenuPopoverPreview CardSheetTooltip

AlertBadgeEmptyError StateMeterProgressSkeletonSpinnerStatus dotToast

Activity FeedAvatarAvatar GroupData TableListMetricOverflow ListProperty ListTableTokenTree

Area ChartBar ListCalendar HeatmapCategory ComparisonChart FrameChart LegendChart TooltipDistributionFunnelHeatmapMetric TrendPart-to-WholeProgress RingsRadar ChartRadial BarsSankey ChartScatter ChartScore GaugeTime Series

Diagram

AttachmentCarouselCode BlockLightboxMarkdownThumbnailTimestamp

Agent ThinkingApproval CardComposerConversationInline CitationMessageMessage ScrollerQuestion CardSourcesStreaming TextSuggestionTask ListTerminalTool Call

On this page

  • Preview
  • Usage
  • Examples
  • Sleep score
  • Recommendations
  • Usage boundaries
  • API reference

Charts

Score Gauge

A score built from parts: a segmented ring around the total, with each part's points listed below.

idle

Usage

import { ScoreGauge } from "@mizen-labs/ui";

Examples

Sleep score

Each part's arc spans its share of the maximum score; the list shows its points.

Recommendations

GuidancePractice
Do

Name the score's meaning beside it, such as "Excellent", and keep part labels short.

Usage boundaries

GuidanceBoundary
Scope

The score is the sum of part values; use it only when parts add up to a meaningful total.

API reference

Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.

PropTypeDefaultDescription
partsreadonly { id: string; label: string; value: number; max: number; detail?: string; tone?: ChartSeriesTone }[]RequiredOne to six parts. Each arc spans its max's share of the ring and fills to its value.
aria-labelstringRequiredNames the score.
localestring"en-US"Formats the score and part points.
PreviousScatter ChartNextTime Series
Sleep score
Excellent
98of 100
  • Duration: 7h 50m49/50
  • Bedtime: 20m earlier29/30
  • Interruptions: 5m awake20/20
98of 100
  • Duration: 7h 50m49/50
  • Bedtime: 20m earlier29/30
  • Interruptions: 5m awake20/20