Day 06 of 30 React 19 MIT
Buttons with a little life in them.
45 one-file React buttons you can pet, pour, pop and peel. Every one on this page is the real component, running live. Press it, then copy the file or hand your agent the prompt.
- Buttons
- 45
- Each is
- 1 .tsx file
- Needs
- react@19
- Size
- 12–43 KB
Loading the live button
blackhole.tsx22 KB · React 19
Details
01 What it is
One file per button. Nothing to install.
No package, no CSS framework, no animation library. Each button is a single .tsx you copy into your project and own.
- A real <button>Keyboard focus, disabled and form type work as usual. The label stays readable to screen readers.
- Styles insideEach file carries its own CSS under prefixed class names. No stylesheet to import.
- React 19 onlyWorks in Next.js, Vite and any React 19 app. 12 to 43 KB of source each.
- Agent-readyOne index lists every button by feel, so your agent can pick one and add it for you.
02 The gallery
All 45 buttons, live.
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
-
Loading the live button
No button feels like that yet.
03 Ask your agent
Describe the feel. Your agent adds the button.
Any agent that can read a web page can use Toy Buttons. Every tile has its own prompt; this one lets the agent choose.
- One index
zirkomirko.com/mcp/snippets/toy-buttons/index.jsonlists every button with its feel line, tags and file. - One file backThe agent fetches the file it picked, saves it with your components and recolours it to your brand.
Read https://zirkomirko.com/mcp/snippets/toy-buttons/index.json. It lists every Toy Button with what it feels like and its file. Pick the one that best fits what I describe, fetch its file from the same folder, save it in my components folder and recolour it to match my brand. I want: a button that bends the whole page
04 Install and licence
Copy, import, make it yours.
- Take the filePress Copy code or Download on a tile and save it in your components folder.
- Import itIt takes the normal button props (onClick, disabled, type) and a text label as its children.
- Make it yoursChange the label and the colours at the top of the file to match your brand.
// components/BlackHoleButton.tsx is blackhole.tsx, copied and renamed
import { BlackHoleButton } from "./components/BlackHoleButton";
export function Hero() {
return (
<BlackHoleButton onClick={() => start()}>
Get started
</BlackHoleButton>
);
}What is Toy Buttons?
Toy Buttons is a free, MIT-licensed collection of playful React buttons by ZirkoMirko. Each button is one .tsx file whose only dependency is React 19: fur you can pet, sand that pours, a black hole that bends the page. Press every button live on this page, then copy the code, download the file, or give your AI agent the prompt shown under it.
How it works
- Hover and press the buttons on this page. Every one is the real component running live.
- Press Copy code or Download under the button you want and save it in your components folder.
- Import it like any React component, change the label, and recolour it to match your brand. Or copy the prompt and let your agent do it.
FAQ
- Are Toy Buttons free?
- Yes. They are free and MIT licensed. Download one file or the whole set as a zip.
- What do they need?
- React 19 and nothing else: no CSS framework, no animation library, no build plugin. They work in Next.js, Vite and other React 19 apps.
- Can my AI agent add one?
- Yes. Copy the prompt under a button and give it to your agent. It points at the button's source file on this site, which any agent that can read a web page can fetch.
- Do they respect reduced motion?
- Each button is a real button element with its label kept for screen readers. How much each one animates under reduced motion differs, so test the one you pick.