MiHCM
primitives/@mihcm/ui·v0.21.0·stable

Text

Type primitive. Type scale, weight, and tone — semantic tokens only.

Props

The full prop API for Text. Same surface in web and React Native — bundlers pick the right variant via the react-native export condition.

PropTypeDefaultDescriptionSince
size'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl''base'Type scale.0.1.0
weight'normal' | 'medium' | 'semibold' | 'bold''normal'Font weight.0.1.0
tone'default' | 'muted' | 'destructive' | 'success' | 'warning''default'Semantic color tone. Pair with an icon — never color-only.0.1.0
as'span' | 'p' | 'div' | 'strong' | 'em' | 'small' | 'label' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6''span'Semantic element on web. Native keeps API parity and maps h1-h6 to header accessibility role.0.10.3
classNamestringAdditional Tailwind classes.0.1.0

Import

import { Text } from '@mihcm/ui/Text';