MicroKit orange square

MicroKit UI

Details matter.
Copy-paste microinteractions for thoughtful product interfaces.



· ·


Why MicroKit?

MicroKit is a focused library for the small interactions that make an interface feel considered. Each component has a live preview and copy-ready source, so you can inspect the behavior, choose your preferred implementation, and adapt it directly in your project.

MicroKit is built for copying and learning from the source—not for hiding interaction details behind a package API.

Features

  • 43 interactive components with dedicated preview pages
  • JavaScript and TypeScript implementations
  • CSS and Tailwind styling variants
  • Live previews for testing every interaction before copying
  • Copy-ready source designed to reproduce the displayed component
  • Favorites and recently viewed components stored locally in the browser
  • Direct component routes for sharing individual interactions
  • GitHub-based submissions with no custom backend required

Using a component

  1. Open the .
  2. Select a component to open its dedicated page.
  3. Test the interaction in the live preview.
  4. Open the Code tab.
  5. Choose JavaScript or TypeScript.
  6. Choose CSS or Tailwind.
  7. Copy the source into your project and customize it.

Some interactions use lucide-react for icons. Any required dependency is visible in the copied source.

Run locally

Requirements: Node.js 20 or newer and npm.

bash
git clone https://github.com/henriquegpb/microkit.gitcd microkitnpm installnpm run dev

Open .

Create a production build with:

bash
npm run build

Project structure

text
app/  components/[id]/page.tsx   Dedicated component routes  sponsors/page.tsx          Sponsors route  submit/page.tsx            Contribution route  page.tsx                   Gallery, previews, and shared page UI  globals.css                Visual system and interaction styles
content/  interactions/catalog.ts    Component metadata and copyable source
public/  assets/img/                Shared logos and visual assets
.github/  ISSUE_TEMPLATE/            Component submission form

Sponsors

MicroKit is supported by:

Diamond


Nora

Your AI Personal Assistant

Support helps keep MicroKit available and gives the project more room to improve its components, documentation, and contribution workflow.

— Choose a tier and send a prefilled sponsorship inquiry.

Contributing

You can submit an interaction through the . The page prepares a GitHub issue containing your component code, where you can add a screenshot and any necessary attribution.

Before submitting:

  • Keep the interaction focused on one clear behavior.
  • Make the preview genuinely interactive.
  • Include the complete code required to reproduce the result.
  • Support keyboard focus where the element is interactive.
  • Respect reduced-motion preferences when motion is not essential.
  • Avoid unnecessary dependencies.
  • Credit the original source when adapting someone else’s work.

You can also use the directly.

Development

Useful commands:

bash
npm run devnpm run lintnpm run buildnpm run start

The site is built with Next.js, React, TypeScript, Tailwind CSS, Lucide icons, Prism syntax highlighting, and Vercel Analytics.

Maintainer

MicroKit is maintained by .

Credits

Some interactions are adapted from publicly shared examples and Webflow exports. MicroKit rewrites them into reusable JavaScript, TypeScript, CSS, and Tailwind implementations. If you recognize work that needs clearer attribution, please .