Components
All components are built on top of the foundation token layer. They never use hardcoded values — every visual property references a CSS custom property.
When asking Claude to create a new component, it will automatically read the token layer and follow the patterns established in the existing components.
Installing
npm install @mitek/uiUsage
// Import styles once at your app entry point
import '@mitek/ui/styles';
// Then import individual components
import { Button, Badge } from '@mitek/ui';Available components
| Component | Status | Description |
|---|---|---|
| Button | Stable | Primary interactive action element |
| Badge | Stable | Status label and count indicator |
Component conventions
Every component in this library follows these rules:
- Token-only values — no hardcoded
px,rem, or hex values forwardRefsupport — for imperative access when neededasprop — render as a different HTML element when appropriateclassNamepassthrough — for one-off overrides- ARIA compliant — keyboard navigable and screen-reader friendly
- CSS Modules — scoped styles, no global leakage