shadcn-compatible components that send as little JavaScript to the browser as possible.
What is GooseUI?
GooseUI is a shadcn registry. The shadcn CLI copies a component's source into your project, and from then on the code is yours: no package to update, nothing hidden. Components use the shadcn/ui color tokens, so they live next to shadcn/ui in one project and follow its theme.
The difference is how much JavaScript reaches the browser. Open and closed state lives in native HTML: <details>, <dialog>, the popover attribute, radio inputs read with :has(). Motion is CSS: transitions, @starting-style, scroll-driven animations, View Transitions. A component turns into a client component only when the browser can't do the job without a script.
Principles
- Server components by default. About 40% of the registry ships no JavaScript at all.
- No Radix and no Motion. Most components need only React and the cn helper; the few exceptions are listed on the installation page.
- Core behaviour relies on Baseline features. Newer CSS is an enhancement with a fallback.
- Tailwind CSS v4 and shadcn color tokens, dark theme included.
- Keyboard support, visible focus, ARIA states and prefers-reduced-motion in animated components.
- Some components also come as plain HTML and CSS, without React.
How a component is built
When a component does need JavaScript, it is split in two. The main file stays a server component and renders the whole markup. Next to it sits a small island, a *.client.tsx file, that adds only the behaviour CSS can't handle.
Animated Timer is a good example. The server file renders the clock with all its digits, and the digit roll is a CSS transition. The island is 46 lines: once a second it writes the current time into data attributes and renders nothing itself.
components/ui/
├── animated-timer.tsx # server: markup, styles, digit roll
└── animated-timer.client.tsx # "use client": writes the time once a secondWithout JavaScript
Since the markup comes from the server, the page is readable before any script loads. Where native HTML holds the state, the component keeps working with JavaScript turned off: the accordion on <details>, the switch on a checkbox, the marquee on CSS animation. Islands only add to what is already on the page.
Some things can't be done without a script: a live clock, copying to the clipboard, a signature pad. There the component renders a sensible static state and comes to life when the island loads.
Speed
Less client code means less to download, parse and hydrate, which is what Total Blocking Time and INP in PageSpeed measure. Every item's client JS weight is measured by scripts/measure-js.mjs in the repository.
Quick start
Install a component with the shadcn CLI: