Skip to content

Copy-paste UI components

Free HTML, CSS and JavaScript components for Bootstrap 6, Bootstrap 5, Tailwind CSS and pure CSS. Preview live, copy the code, ship faster.

Browse by category

All 545 components

Latest components

Stats Section with Four Key Numbers – free WordPress stats section template

Stats Section with Four Key Numbers

A dark stats section with four key numbers, labels and short notes, a statistics counter band for Gutenberg that highlights company figures.

Toggle Switches with Labels – free Bootstrap 6 toggle & switch template

Toggle Switches with Labels

Dark Bootstrap 6 settings panel with .switch toggles in three sizes, labels with descriptions, disabled states and a simulated auto-save status.

Checkbox List with Select All – free Bootstrap 6 checkbox & radio template

Checkbox List with Select All

Bootstrap 6 member list with a select-all checkbox that turns indeterminate, a live counter, Shift+click ranges and bulk action buttons.

Radio Button Cards – free Bootstrap 6 checkbox & radio template

Radio Button Cards

Bootstrap 6 radio inputs styled as selectable plan and shipping cards with .form-field-card, a live price summary and a simulated submit.

Checkbox and Radio Styles – free Bootstrap 6 checkbox & radio template

Checkbox and Radio Styles

Bootstrap 6 .check and .radio inputs in default, inline, disabled and indeterminate states, with size modifiers and a brand color set by CSS variables.

Styled Form Select Sizes – free Bootstrap 6 select template

Styled Form Select Sizes

Bootstrap 6 native selects styled with .form-control in small, default and large sizes, plus option groups, a disabled field and a multi-select with a live summary.

Product Grid with Quick Add on Hover – free Tailwind CSS product grid template

Product Grid with Quick Add on Hover

Tailwind CSS product grid where a quick add bar slides up over each photo on hover or focus, with a live bag counter and wishlist toggle.

Sticky Header that Shrinks on Scroll – free Pure CSS navbar template

Sticky Header that Shrinks on Scroll

Sticky website header that shrinks its height, logo and wordmark after a short scroll, with a blurred backdrop and an accessible mobile menu.

Office Locations with City Photos – free Bootstrap 5 contact section template

Office Locations with City Photos

Bootstrap 5 contact section with four office cards showing a city photo, address, phone, email, live local time, open/closed badge and directions link.

Bento Grid Feature Section – free Tailwind CSS feature section template

Bento Grid Feature Section

Asymmetric Tailwind CSS bento grid feature section with large, wide, tall and small tiles, inline SVG chart and mini illustrations.

Tweet-Style Post Card with Image – free Pure CSS social feed template

Tweet-Style Post Card with Image

Microblog post card with avatar, verified badge, attached photo and working like, repost, bookmark and share buttons. Pure CSS with a little vanilla JS.

FAQ Accordion with Details Blocks – free WordPress faq section template

FAQ Accordion with Details Blocks

An FAQ accordion with six expandable questions next to a heading and contact button, a frequently asked questions section built from Gutenberg Details blocks.

Navbar with Sliding Active Indicator – free Pure CSS navbar template

Navbar with Sliding Active Indicator

Dark responsive navbar with a glowing underline that slides between links on hover, focus and click, built with CSS custom properties and vanilla JS.

3D Coverflow Image Carousel – free Pure CSS carousel template

3D Coverflow Image Carousel

Coverflow-style image carousel with rotated 3D side photos, reflections, captions, dots, swipe and keyboard navigation in pure CSS and vanilla JS.

Split Hero with Diagonal Photo Clip – free Pure CSS hero section template

Split Hero with Diagonal Photo Clip

Pure CSS split hero with headline, buttons and stats beside a full-height photo cut on a diagonal with clip-path, plus an accent stripe and rating badge.

Hero with Rotating Words – free Pure CSS hero section template

Hero with Rotating Words

Dark hero section whose headline cycles through words with a slide-and-fade animation, a pause button and decorative stat cards.

Simple Centered Footer – free Pure CSS footer template

Simple Centered Footer

Minimal centered footer in pure CSS with a logo, tagline, links with animated underlines, round icon links and an auto-updating copyright year.

What is WebDevSnippets?

WebDevSnippets is a free library of ready-to-use UI components for web developers. Every component is plain HTML, CSS and vanilla JavaScript, built for Bootstrap 6, Bootstrap 5, Tailwind CSS or pure CSS, so it drops into any project and any stack without a build step or extra dependencies.

The library covers the parts every website needs: navigation bars, hero sections, cards, forms, pricing tables, modals, footers and e-commerce blocks, as well as complete page templates for homepages, about, services, contact and pricing pages. New components are added every day.

Choose the design you actually want

Ask an AI coding assistant for "a pricing section" or "a landing page" and it either guesses a layout from your words or makes one up, and you spend the next hour explaining what you really meant. WebDevSnippets works the other way round: you browse real, working designs, compare them in the live preview and pick the one you like.

Found it? Click Download HTML on the component page. You get a single file with the markup, styles and script, ready to use in two ways:

  • Build it yourself: open the file, copy what you need into your project and adjust the colors and text.
  • Give it to your AI assistant: attach the file and ask it to use this design in your project, for example "build our pricing section like this file, using our components and brand colors". The AI then follows the design you chose instead of inventing one.

Either way, your project looks the way you decided, not the way a prompt happened to turn out.

How it works

  1. Find a component by category or with the search box.
  2. Check the live preview, or open it full screen in a new tab.
  3. Copy the HTML, CSS and JavaScript, or download everything as one HTML file, and use it yourself or with your AI assistant.

All components are free for personal and commercial projects, including client work; see the license. For colors, the free developer tools include a color picker, palette generator, tints and shades and a WCAG contrast checker.