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

Label

Form field label. Pairs with Input/Switch/Checkbox via htmlFor. Optional required suffix.

Props

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

PropTypeDefaultDescriptionSince
htmlForstringID of the form control. Ignored on native; pass `accessibilityLabel` on the control instead.0.3.0
tone'default' | 'muted' | 'destructive''default'Tone of the label text.0.3.0
requiredbooleanfalseAppends a destructive asterisk for visual cue. Not a substitute for `aria-required` on the control.0.3.0

Import

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