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.
Available components
Primary interactive action element. Five variants, five sizes, loading and icon support.
ActivePendingFailed
Status label and count indicator. Six semantic variants with optional dot indicator.
Toggle control for binary on/off states. Fully accessible with label and description support.
Heading
Body textEyebrow labelTypography scale component. All display, heading, body, and eyebrow variants in one component.
Installing
npm install @okapidev/mitek-uiUsage
// Import styles once at your app entry point
import '@okapidev/mitek-ui/styles';
// Then import individual components
import { Button, Badge, Text, Switch } from '@okapidev/mitek-ui';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