mtxuilib
v0.8.35
Published
Standalone public UI component library extracted from gomtm.
Readme
mtxuilib
Standalone React/Next UI component library extracted from gomtm and published as the public mtxuilib npm package.
What This Repository Provides
- reusable UI primitives under
mtxuilib/ui/* - higher-level
mt/*building blocks used bygomtmui - shared helpers under
mtxuilib/lib/* - packaged styles under
mtxuilib/styles/*
mtxuilib now lives in this standalone repository. Downstream apps should consume the published npm package instead of a monorepo-local copy.
Install
npm install mtxuilibPeer dependencies:
next@^15react@^19.2react-dom@^19.2
Usage
import "mtxuilib/styles/globals.css";
import { Button } from "mtxuilib/ui/button";
import { cn } from "mtxuilib/lib/utils";
export function Example() {
return <Button className={cn("w-full", "justify-start")}>Open</Button>;
}Common public entrypoints:
mtxuilib/ui/*mtxuilib/mt/*mtxuilib/prompt-kit/*mtxuilib/store/*mtxuilib/lib/*mtxuilib/styles/*
Local Development
npm ci
npm run checkUseful commands:
npm run lint- Biome checks for source, tests, docs, and workflow filesnpm run typecheck- TypeScript contract check for the package sourcenpm test- Vitest runtime checks for stable utility exportsnpm run test:smoke- consumer-style public import smoke checknpm run build- cleandist/, compile TypeScript, and copy packaged stylesnpm run check- full validation pipeline used by CI
CI/CD
ci.ymlruns on every push and pull request- the CI pipeline performs
npm ci,npm run check, andnpm pack --dry-run publish.ymlruns on version tags likev0.8.35- release publishing uses
npm publish --provenanceand creates a matching GitHub Release with the packed tarball attached
Release Flow
- Update
package.jsonto the target version. - Run
npm ci && npm run checklocally. - Commit the change and create a tag such as
v0.8.35. - Push the commit and tag.
- Wait for
publish.ymlto publish to npm and create the GitHub Release.
Detailed contributor and release notes live in CONTRIBUTING.md and RELEASING.md.
