← All free design resources

Component libraries

Free UI component libraries for AI-built sites, each with a prompt

A component library is a free shelf of ready-made website pieces, like buttons, menus and pricing boxes, that your AI can copy instead of designing from nothing. Start with Uiverse for one piece to paste in, or 21st.dev for a bigger, polished section.

Updated 2026-11-16

Each card says what the library is good for, when to pick it and its licence. Copy the prompt, paste it into your AI chat (Claude, ChatGPT or any other), and it adds the piece to your page.

Good for
Single buttons, cards, toggles and loaders that you copy as plain HTML and CSS.
Pick it if
you want one eye-catching piece you can paste in as it is.
Licence
MIT License (the site states all UI elements are published under the MIT License, free for personal and commercial use).
I copied a button from Uiverse (https://uiverse.io), a free library of HTML and CSS elements. Here is its HTML and CSS: [paste it here]. Please add it to my page as the main button people click, keep its animation, and adjust its colors to match the rest of my page. Keep everything inside my one HTML file.

21st.dev ↗

Free tier
Good for
Bigger, polished sections, like hero banners, pricing tables and animated buttons.
Pick it if
you want a whole section that looks made by a designer, and a small credit link on your page is fine.
Licence
Free to browse, with 2 free copies a day (the Builder plan, from $6 a month, removes the limit). Components belong to their authors and 21st.dev. Its terms ask for a clear, visible link back to the component's page on 21st.dev when you copy one to another website.
I found a component I like on 21st.dev (https://21st.dev). Here is the code or prompt I copied from its page, then that page's link: [paste them here]. It is written for React and Tailwind, but I only have one HTML file. Please rebuild the same look and animation in plain HTML, CSS and JavaScript inside my single file, with no install steps. At the bottom of my page, add a small credit link to that 21st.dev page.
Good for
Neat blocks for ordinary pages, like headers, pricing sections, forms and footers.
Pick it if
you want your page laid out like a tidy small-business site.
Licence
MIT License
Use HyperUI (https://hyperui.dev) as a guide for my page layout. Its free blocks are written with Tailwind CSS, but I only have one HTML file. Please pick a clean pricing section and a simple footer in the HyperUI style and write them in plain CSS inside my single HTML file, so nothing needs installing. Keep it easy to read on a phone.
Good for
Restyling a whole page at once, with ready-made color themes and pieces with short names like btn and card.
Pick it if
you want every button, card and menu on your page to match without picking colors yourself.
Licence
MIT License
Use daisyUI (https://daisyui.com), a free set of ready-made page pieces with short names like btn and card. Load it from its CDN with the lines on https://daisyui.com/docs/cdn/, including the extra themes file, so nothing needs installing. Then restyle my page's buttons, cards and top menu in the daisyUI style, using its 'nord' theme. Keep everything inside my one HTML file.
Good for
Pieces that open, close or switch, like pop-up windows, drop-down menus and tabs.
Pick it if
your page needs something people click to open, like a contact form in a pop-up.
Licence
MIT License for the free library (Flowbite Pro is a separate paid product with its own licence).
Add a 'Contact me' button to my page that opens a pop-up window like the 'Modal' from Flowbite (https://flowbite.com/docs/components/modal/): a box over the page with a short form (name, email, message) and a close button. Flowbite is written with Tailwind CSS, but I only have one HTML file, so please rebuild it in plain HTML, CSS and JavaScript inside my single file, with no installs. It should also close with the Esc key.
Good for
The clean, calm look of many modern web apps: thin borders, soft corners and plenty of space.
Pick it if
you are building a tool, like a form, a tracker or a dashboard.
Licence
MIT License
Make my page look like shadcn/ui (https://ui.shadcn.com), a free set of app pieces with a clean, calm style: thin grey borders, softly rounded corners, plenty of space and simple dark buttons. It is made for React and Tailwind, but I only have one HTML file, so please recreate the look in plain HTML and CSS inside my single file, with no installs. Start with my buttons, cards and form fields.

Magic UI ↗

Free tier
Good for
Moving pieces for landing pages, like scrolling rows of logos, shimmering buttons and moving text.
Pick it if
you want one small moving piece on your page.
Licence
MIT License for the free components (Magic UI Pro is a separate paid product).
Take the 'Marquee' idea from Magic UI (https://magicui.design/docs/components/marquee): a row of cards that scrolls slowly and endlessly sideways. Magic UI is built for React, so please recreate the effect in plain HTML, CSS and JavaScript inside my one HTML file. Use it to show short quotes from happy customers, and pause the scrolling when I hover over it.
Good for
Big animated backgrounds and effects, like glowing light, 3D cards and spotlights.
Pick it if
you want the top of your page to make people stop and look.
Licence
Aceternity License: use in unlimited end products, including commercial websites; you may not resell or redistribute the components themselves. Some components are free, others need the paid All-Access Pass.
Use the 'Aurora Background' from Aceternity UI (https://ui.aceternity.com/components/aurora-background) as the background of my page's top section: soft, slowly moving bands of color behind the headline. It is made for React and Tailwind, so please rebuild it in plain HTML and CSS inside my single HTML file, with no installs. Keep the text easy to read on top.
Good for
Playful animated backgrounds, text effects and cursor effects to study and recreate.
Pick it if
you want something fun that reacts when people move the mouse.
Licence
MIT + Commons Clause: free to use in your own sites and apps, including commercial ones, but you may not sell, sublicense or redistribute the components themselves.
Look at the 'Dot Field' background from React Bits (https://reactbits.dev/backgrounds/dot-field): a grid of small dots that reacts when the mouse moves over it. React Bits is made for React, so please recreate the idea in plain HTML, CSS and JavaScript (a canvas is fine) inside my single HTML file, behind my main heading. Keep it subtle and smooth on phones.

Want fonts, icons and colors too? All free design resources →