primitives/@yashiel/mihcm-ui·v0.1.0·stable

Button

Primary action affordance. Six variants, four sizes. Universal across web and native.

Props

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

PropTypeDefaultDescriptionSince
variant'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link''default'Visual variant. One primary action per region.0.1.0
size'sm' | 'md' | 'lg' | 'icon''md'Size scale. Use `lg` for primary mobile actions to satisfy the 44px touch-target rule.0.1.0
isLoadingbooleanfalseSets `aria-busy`. Disables interactions while loading.0.1.0
disabledbooleanfalseStandard disabled state.0.1.0
leadingIconReactNodeIcon rendered before children.0.1.0
trailingIconReactNodeIcon rendered after children.0.1.0
classNamestringAdditional Tailwind classes; merged with `tailwind-merge`.0.1.0

Import

import { Button } from '@yashiel/mihcm-ui/Button';