Skip to content

20+ Free Bootstrap & Tailwind Widget Templates

Small, self-contained interactive widgets.

24 components

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.

Circular Countdown Timer – free Pure CSS countdown timer template

Circular Countdown Timer

Countdown timer with glowing SVG rings for days, hours, minutes and seconds that shrink as time runs out. Pure CSS with a small vanilla JS file.

Digital Clock with Date – free Bootstrap 5 clock template

Digital Clock with Date

Bootstrap 5 digital clock card with large glowing digits, weekday, full date, 12h/24h switch, day progress bar and time zone support.

Mini Audio Player Bar – free Bootstrap 5 music player template

Mini Audio Player Bar

Bootstrap 5 fixed bottom audio player bar with cover art, play, skip, seekable progress, volume slider, mute and a clickable playlist.

Weather Card with City Photo Background – free Bootstrap 5 weather widget template

Weather Card with City Photo Background

Bootstrap 5 weather card over a city photo with a city switcher, Celsius/Fahrenheit toggle, current conditions and a 5-day forecast on frosted glass.

Countdown Sale Banner for Shopify – free Shopify countdown timer template

Countdown Sale Banner for Shopify

A Shopify section that counts down to one fixed end date, as a full banner or slim bar, with an optional discount code to copy and a clean ended state.

Back to Top Button that Fades In – free Tailwind CSS back to top button template

Back to Top Button that Fades In

Floating Tailwind CSS back-to-top button that fades in after scrolling, smooth-scrolls up and returns keyboard focus to the page title.

Pinterest-Style Pin Board – free Bootstrap 5 social feed template

Pinterest-Style Pin Board

Bootstrap 5 masonry pin board with photo pins, topic filter chips, save buttons and a live saved counter.

Support Chat Popup with Agent Photo – free Tailwind CSS chat widget template

Support Chat Popup with Agent Photo

Tailwind CSS support chat popup with an agent photo, online status dot, suggested questions, typing indicator, unread badge and simulated replies.

Reels-Style Vertical Feed – free Tailwind CSS social feed template

Reels-Style Vertical Feed

Tailwind CSS reels-style vertical feed with snap-scrolling full-height photos, like, comment, share and save buttons, double-click to like and keyboard navigation.

Chat Bubbles with Typing Indicator – free Pure CSS chat widget template

Chat Bubbles with Typing Indicator

Pure CSS chat window with grouped incoming and outgoing message bubbles, an animated three-dot typing indicator and a working composer.

System, Light and Dark Theme Dropdown – free Tailwind CSS theme toggle template

System, Light and Dark Theme Dropdown

Accessible Tailwind CSS dropdown to choose a light, dark or system theme, with live OS sync, saved preference and CSS variable tokens.

Weather Forecast with Weekly View – free Tailwind CSS weather widget template

Weather Forecast with Weekly View

Tailwind CSS weather widget with current conditions, a selectable 7-day forecast with temperature range bars, and a °C/°F switch.

World Clock Widget – free Tailwind CSS clock template

World Clock Widget

Tailwind CSS world clock with live digital times for six cities, day and night cards, time differences, a 12h/24h switch and the Intl API.

Music Player Card – free Pure CSS music player template

Music Player Card

Dark music player card with a spinning vinyl cover, seek bar, play, skip, shuffle and repeat controls, volume slider and a clickable playlist.

Weather Card with Forecast – free Pure CSS weather widget template

Weather Card with Forecast

Sky-blue weather card with a CSS-drawn sun and clouds, current conditions, quick stats, a 5-day forecast with range bars and a Celsius/Fahrenheit switch.

Back to Top Button with Scroll Progress – free Pure CSS back to top button template

Back to Top Button with Scroll Progress

Round back-to-top button with an SVG ring that fills as you scroll, a percentage label and smooth scrolling, for the page or any scroll container.

Live Analog Clock – free Pure CSS clock template

Live Analog Clock

Live analog clock with CSS-rotated hands, conic-gradient ticks, a digital readout and optional time zone support, in pure CSS and vanilla JS.

Social Media Post Card – free Bootstrap 5 social feed template

Social Media Post Card

Dark Bootstrap 5 social post card with photo, double-tap like, save, native share with copy-link fallback and an inline comment thread.

Chat Widget – free Tailwind CSS chat widget template

Chat Widget

Tailwind CSS support chat widget with floating launcher, unread badge, message bubbles, suggested replies, typing indicator and Enter-to-send input.

Light/Dark Theme Toggle – free Tailwind CSS theme toggle template

Light/Dark Theme Toggle

Tailwind CSS dark mode toggle with an animated sun/moon switch that follows the system preference, remembers the choice and can reset to system.

Flip Countdown – free Tailwind CSS countdown timer template

Flip Countdown

Tailwind CSS flip-clock countdown timer with 3D split-flap cards for days, hours, minutes and seconds, reduced-motion support and a completion event.

Launch Countdown Card – free Bootstrap 5 countdown timer template

Launch Countdown Card

Bootstrap 5 countdown card for product launches with a reminder button.

Countdown Timer Cards – free Pure CSS countdown timer template

Countdown Timer Cards

Pure CSS countdown with days, hours, minutes and seconds in flip-style cards.

What are UI widgets?

Widgets are small, self-contained interactive pieces you can drop into almost any page: countdown timers, weather and clock widgets, rating stars, calculators, to-do lists, chat bubbles, back-to-top buttons, copy-to-clipboard boxes, cookie notices, search boxes, theme switchers and similar mini tools. Each one solves a single job and usually needs only a little HTML, CSS and JavaScript.

When to use a widget

Use widgets to add useful interactivity without pulling in a large library. They work well in sidebars, dashboards, landing pages and blog posts, or as a starting point when you need a specific behaviour and want to see a clean implementation first. Because they are isolated, they are also easy to test and to remove later.

Best practices for interactive widgets

  • Scope the CSS with a unique class so widget styles do not leak into the rest of the page.
  • Use real form controls and buttons so keyboard and screen reader support comes for free.
  • Announce dynamic changes, such as a timer finishing or a value updating, with aria-live where it matters.
  • Avoid moving or flashing content, and respect prefers-reduced-motion.
  • Initialise widgets after the DOM is ready and support more than one instance on a page.
  • Store settings like a chosen theme in localStorage only when it improves the experience, and handle the case where storage is unavailable.
  • Keep the script small and defer it so the widget never blocks page rendering.

Framework versions

Widgets are offered in Bootstrap 6, Bootstrap 5, Tailwind CSS and pure CSS variants. Many work with plain JavaScript regardless of framework; the Bootstrap 6 alpha versions use its ES module approach and theme-* colour roles, and the Bootstrap 5 versions reuse familiar utility and component classes. Filter by framework, try the widget in the live preview, then copy the HTML, CSS and JS from the code tabs or download it and adapt the options to your needs.