r/reactjs • u/Repulsive-Beach4801 • Oct 31 '26
Show /r/reactjs I built a hand-drawn React UI kit. The hard part was making "random" wobble SSR-safe.
PlopUI is a React component library where everything looks sketched: wobbly borders, tilted cards, sticker shadows. Some things that were more interesting to build than they look:
- No Math.random() in render. Every tilt, wobble and jitter comes from a seed function, so the server and the client draw the exact same crooked line and there are no hydration mismatches.
- Native elements first. Dialog is a real <dialog> with showModal(), the upcoming Accordion is <details>/<summary>. The wobble is decoration on top, not a replacement for the element.
- Interactive components are "use client". Static ones stay Server Components, so you don't pay for JS on a card that just sits there.
- Every component has a Vitest test for its keyboard behavior and a story for every state.
- The library never imports from next/*. It's plain React; Next.js only lives in the docs and demo apps.
npm i @plop-ui/react @plop-ui/fonts
Docs: https://plopui.com
Playground: https://plopui.com/playground
Code: https://github.com/Snorlark/plop-ui
I'd really like feedback on the API. If a prop name or pattern feels wrong, tell me now before 1.0 makes it permanent.
6
u/minniehajj Oct 31 '26
Your site on mobile has a lot of issues, random bouncing around and scrolling to/landing at the bottom after selecting links. Love the design idea but the site is basically unusable on mobile!
3
u/Additional-Grade3221 Nov 01 '26
Wait this is really cute
2
u/ouvreboite Nov 01 '26
Great job! The slight bounce back on the button is really nice.
Shouldn’t pip and bix colors be swapped ? Pip is meant to represent success but has a red cap
3
u/jeremyStover Oct 31 '26
Honestly, this doesn't feel vibe coded, so I will shout you out everywhere. Great job. Even if you used AI, that is fine, cause it's well crafted, easy to read, and not overbuilt
-2
u/Mr-Bovine_Joni I ❤️ hooks! 😈 Oct 31 '26
Hey I love this. Well done
-5
u/BeatsByiTALY Oct 31 '26
Really inspiring work here. Fresh and innovative. Thanks for sharing
0
u/[deleted] Oct 31 '26
[deleted] — view deleted comment