Stop shipping "dumb" keyboard shortcuts that ignore your user's OS. I’m currently building fscomp - a free, open-source UI library for devs who are tired of "dumb" CSS skins. Today, I finished the Kbd (Keyboard) component, and it’s more than just a styled box. Most Kbd components are static. This one is platform-aware. What’s under the hood: ⚡ Platform Intelligence: It auto-detects the user's OS. Pass keys={["mod", "K"]} and it renders ⌘ + K on Mac or Ctrl + K on Windows instantly. No more manual mapping. 🎨 7 Pro Variants: From "Mac-style", gradients and "Modern", blurs to "Glassmorphism." It fits any design system out of the box. 🧠 Built-in Logic: Native "Click to Copy" functionality and "Active" states for real-time keypress feedback-zero extra boilerplate needed. The Tech Stack: - CVA & Tailwind: Perfectly balanced for flexible styling. - TypeScript: Fully type-safe key symbols. - Micro-interactions: Smooth scales and success-rings on copy. Current Status: 26/27 atoms completed. 🚀 I’m building for a "Beauty with Brains" aesthetic - premium looks paired with robust logic. The library isn't live yet, but we’re getting closer every day. Devs: What’s the most annoying part of handling shortcuts in your UI? I'll bake the solution into these atoms. 👇 Follow to follow the fscomp journey. (fscomp - Beauty with Brains) #BuildingInPublic #OpenSource #ReactJS #TailwindCSS #DesignSystems #WebDev #TypeScript

To view or add a comment, sign in

Explore content categories