6 packages ยท React ยท TypeScript ยท Zero deps

Tiny, polished
React primitives.

Headless hooks + beautifully styled components. Every package ships under 25 KB, has zero runtime dependencies, and is SSR-safe.

$ npm install @mshafiqyajid/react-copy-button

Packages

react-copy-button
v0.1.1 ~7 KB

Copy-to-clipboard with headless hook, styled variant, animations, async source, and tooltip.

hookheadlessanimated
react-otp-input
v0.1.0 ~20 KB

OTP / verification-code input with smart paste, full keyboard nav, masking, and group separators.

hooka11ypaste
react-segmented-control
v0.1.0 ~17 KB

iOS-style segmented picker with buttery sliding indicator, ResizeObserver measurement, and generic type support.

hookanimatedgeneric
react-rating
v0.1.0 ~18 KB

Star-rating with half-step support, hover preview, custom icons, CSS clip-path fills, and keyboard nav.

hookhalf-stepcustom icons
Drop-in for react-color
react-color
v0.1.1 ~11 KB

Drop-in replacement for react-color. Zero dependencies, ~11 KB. Hex/RGB/HSL/HSV pickers and pure color math.

color mathzero depsdrop-in
react-tooltip
v0.1.0 ~6 KB

Accessible tooltip with smart flip positioning, animated entry, keyboard dismiss, and zero dependencies.

accessibleanimatedflip

Why these packages?

๐Ÿ“ฆ

Zero runtime deps

Every package ships zero runtime dependencies. No lodash, no moment, no prop-types.

๐Ÿงฉ

Headless by default

Every package exports a hook (or headless primitive) so you can build any UI on top.

๐Ÿ’…

Styled option included

A polished styled component ships alongside the headless version โ€” dark mode, animations, CSS vars.

๐Ÿ”

TypeScript-first

Full type inference, generic components, and complete typedefs. No @types/* needed.

๐ŸŒ

SSR-safe

All packages do nothing at import time. Works with Next.js App Router, Remix, Astro.

โš›๏ธ

React 17โ€“19

Peer dependency is react โ‰ฅ 17. Tested against React 19 and Next.js 15.