Atomic design in practice: I sorted 50 real UI components
I took the 35 components and 15 blocks in LaralCN-UI, my Blade component library, and sorted them into atomic design's levels. 25 fit. 10 didn't, and they're the interesting part.
7 min read
Every atomic design explainer uses the same example: a search bar. An input and a button make a molecule. Easy.
Real component libraries are messier than that. So I took my own, LaralCN-UI, and sorted every piece in it into Brad Frost's five levels. It has 35 components and 15 blocks. 25 components sorted cleanly. 10 didn't fit any level, and one "component" turned out to be bigger than every block.
Here's the model in short, then the sort, then what I'd do with the labels now.
What atomic design is, in 50 words
Atomic design is a model for building UI from small parts up. Brad Frost named it in 2013 and borrowed the words from chemistry. Small pieces combine into bigger ones, and every level is built only from the level below. For a Blade library, that means small components get composed into bigger Blade views.
The five levels in plain terms
Atoms are single elements that stop working if you break them down further. A button, an input, a label.
Molecules are a few atoms doing one job together. A breadcrumb is links plus separators. Take the separators out and it stops being a breadcrumb.
Organisms are full sections of a page. A navbar with a logo, links, a dropdown and a mobile menu.
Templates are page layouts with no real content. Where the sidebar goes, where the header goes, how wide the main column is.
Pages are templates filled with real content. This is where you find out the layout breaks when a product name is 80 characters long.
That's the theory. Now the 50 real files.
My 35 components, sorted
LaralCN-UI is a copy-and-own Blade library in the style of shadcn/ui. You pull the files into your own resources/views/components/ui/ folder and edit them however you like. The registry lists every piece with a category. Here's how the 35 components fall when I force them into Frost's levels instead.
| Level | Count | Components |
|---|---|---|
| Atoms | 15 | button, input, textarea, label, checkbox, radio, select, slider, switch, toggle, badge, avatar, separator, skeleton, progress |
| Molecules | 9 | toggle-group, breadcrumb, pagination, alert, tabs, accordion, dropdown-menu, table, carousel |
| Didn't fit | 10 | card, dialog, alert-dialog, sheet, hover-card, tooltip, collapsible, scroll-area, aspect-ratio, toast |
| Organism | 1 | sidebar |
The atoms were easy. Every one is a single Blade file wrapping a single HTML element. The button is 52 lines, and most of that is the variant and size classes.
The molecules were mostly easy too. Breadcrumb and pagination each ship as 7 Blade files (list, item, link, separator, ellipsis and so on), which is about as clear a molecule as you get.
The last two rows are where the model starts to creak.
The 10 that didn't fit anywhere
Look at the "didn't fit" row and a pattern shows up. Almost all of them are containers. They have a shape and a behavior, but no content of their own.
Take the card. It's one file with an optional title, an optional description, and a slot. Put a single line of text inside it and it's a molecule at best. Put a whole signup form inside it and it's an organism. The card's level depends entirely on what you drop into it, and atomic design has no word for that.
Same story for the rest:
- dialog, alert-dialog and sheet are overlays. They handle the backdrop, focus trap and Esc to close. What's inside is your problem.
- hover-card and tooltip are a trigger plus a floating panel. The panel can hold one word or a profile preview.
- collapsible, scroll-area and aspect-ratio are pure layout behavior. A scroll area with nothing in it isn't anything.
- toast isn't even a shape. It's a region on the page that listens for a
toastwindow event and shows a message when one arrives.
I don't think this is a flaw in my library. Frost's model came from looking at finished pages and breaking them down. Containers only show up when you build from the other direction.
The component that was an organism
Then there's the sidebar.
In the registry, sidebar is one component. On disk it's 22 Blade files: provider, trigger, rail, header, footer, content, group, group-label, group-action, menu, menu-item, menu-button, menu-sub, and more. It has a mobile off-canvas mode, an icon-only mode and a keyboard shortcut.
That's bigger than any block in the library. By Frost's rules it's an organism, maybe a set of organisms. It ships as a component because that's how shadcn/ui ships it, and because people install it as one thing. The level you'd assign on paper and the unit people actually install are two different questions.
The 15 blocks: organisms, and one template
Blocks are the bigger pieces you drop into a page: 6 navbars, 8 footers and one app shell called sidebar-01.
The 14 navbars and footers are textbook organisms. Each is built from components lower down. Navbar-01 uses button, collapsible, dropdown-menu and sheet. Footer-01 uses button and input for the newsletter form. Nothing surprising here, which is the point of having blocks.
sidebar-01 is the odd one. It pulls in 8 components (sidebar, breadcrumb, collapsible, dropdown-menu, avatar, separator, button, skeleton) and gives you a workspace switcher, nav groups and a user footer, but no page content. A full layout with no real content is exactly how Frost defines a template. So the library ships one template and calls it a block.
Where templates and pages actually live
Not in the library. That's the honest answer.
The LaralCN-UI docs site is the app that uses the library, so that's where the last two levels show up. There's one layout file, app.blade.php, which calls x-ui.sidebar 46 times. That's the template. Two Blade views render every component page and every block page from it, so 50 pages come out of one template. I wrote about why the docs site has to be built from its own components in if a component system can't build its own docs, it can't build your app.
That split is normal. A component library hands you parts. Templates and pages belong to whoever builds the product.
Would I use the labels again?
Yes for talking, no for folders.
When I set up the registry, I didn't sort by level. I sorted by job: Forms (11), Overlays (6), Layout (6), Navigation (4), Feedback (4) and Data Display (4). That's how people look for a component. Nobody opens a docs site thinking "I need a molecule". They think "I need something to pick a date".
The atomic levels still earn their place in conversation. "That's an organism" tells a teammate the thing is a full section built from smaller parts and should be one, not ten copy-pasted divs. "Don't put a molecule inside an atom" is a good review comment.
What I wouldn't do again is make five folders and force every file into one of them. A third of my components would end up in a folder that's wrong half the time. If you're comparing how other libraries organize this, why developers choose shadcn/ui over Radix UI covers the copy-and-own approach I based LaralCN-UI on.
What to do with this
If you're building a component library, run this sort on your own. List every component and give it a level. The ones you can't place are your containers, and they tell you which pieces need the clearest docs about what goes inside them.
If you just want the components, LaralCN-UI is MIT, all 35 components and 15 blocks are on the docs site, and you can copy any of them into a Laravel or plain Blade project in one click.
Last updated 4 Nov 2026