Skip to content
中文

Naming reference

Component names are full English words. Style class names use abbreviations to keep them easy to write, so the two don’t always match. Use this table when you write code. All class names start with hao-. Parts use two underscores (hao-card__title), and variants use two hyphens (hao-card--wave).

GroupComponentClass name
ContentAccordionhao-acc
ContentAvatarhao-avatar
ContentCardhao-card
ContentDateTilehao-date
ContentDividerhao-divider
ContentListGrouphao-list
ContentQuotehao-quote
ContentStathao-stat
ContentTablehao-table
ContentTimelinehao-timeline
MotionMotionhao-sheet--enter and three other entrance classes
FeedbackDialoghao-dialog, hao-scrim
FeedbackEmptyStatehao-empty, hao-scene
FeedbackProgresshao-progress, hao-moon, hao-spinner, hao-ripple, hao-skeleton
FeedbackSheethao-sheet, hao-scrim
FeedbackStamphao-stamp, hao-seal--stamp
FeedbackToasthao-toast
PrintPosterhao-poster
IconsIconhao-icon
BrandLogohao-logo
BrandSealGuidehao-sealguide
BrandSealhao-seal
NavigationBreadcrumbhao-crumbs
NavigationNavBarhao-nav
NavigationPaginationhao-pages
NavigationSidebarhao-side
NavigationStepshao-steps
NavigationTabBarhao-tabbar
NavigationTabshao-tabs
ActionsBookmarkhao-lamp
ActionsButtonhao-btn
OverlaysMenuhao-menu
OverlaysTooltiphao-tip
StatusBadgehao-badge
StatusBannerhao-banner
StatusTaghao-tag
PatternsFrethao-fret
PatternsStitchhao-stitch
PatternsTitleSliphao-slip, hao-sign, hao-colophon
PatternsCracklehao-crackle
PatternsWavehao-wave
FormsCalendarhao-cal
FormsCheckboxhao-check, hao-choices
FormsChiphao-chip
FormsRadiohao-radio, hao-choices
FormsRatinghao-plum, hao-rate
FormsSearchFieldhao-search
FormsSegmentedhao-seg
FormsSelecthao-select
FormsSliderhao-slider
FormsStepperhao-stepper
FormsSwitchhao-switch
FormsTextFieldhao-field
FormsUploadhao-upload
ReadingHandscrollhao-handscroll
ReadingMounthao-mount
ReadingPaperhao-paper
ReadingProsehao-prose
ReadingVersehao-verse

A few mappings that are easy to miss: the bookmark class name is hao-lamp, the moon phase progress is hao-moon, the empty state vignette is hao-scene, and the plum blossom is hao-plum.

The preview also has three helper classes that are only for layout, not components: hao-stage (the preview base), hao-row (horizontal row), hao-stack (vertical stack); plus hao-page and hao-grid for page layout.