primitives/@yashiel/mihcm-ui·v0.1.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.
| Prop | Type | Default | Description | Since |
|---|---|---|---|---|
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 |
className | string | — | Additional Tailwind classes. | 0.1.0 |
Import
import { Text } from '@yashiel/mihcm-ui/Text';