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
Open the interaction library.
Select a component to open its dedicated page.
Test the interaction in the live preview.
Open the Code tab.
Choose JavaScript or TypeScript.
Choose CSS or Tailwind.
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 http://localhost:3000.
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 stylescontent/ interactions/catalog.ts Component metadata and copyable sourcepublic/ assets/img/ Shared logos and visual assets.github/ ISSUE_TEMPLATE/ Component submission form
Sponsors
MicroKit is supported by:
Diamond
Your AI Personal Assistant
Support helps keep MicroKit available and gives the project more room to improve its components, documentation, and contribution workflow.
Become a MicroKit sponsor — Choose a tier and send a prefilled sponsorship inquiry.
Contributing
You can submit an interaction through the MicroKit submission page. 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 component submission issue form 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 @henriquegpb.
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 open an issue.