Skip to content

Widgets

Small, self-contained interactive widgets.

18 component(s)

Back to Top Button that Fades In – Tailwind CSS back to top preview

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 – Bootstrap 5 social feeds preview

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 – Tailwind CSS chat widgets preview

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 – Tailwind CSS social feeds preview

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 – Pure CSS chat widgets preview

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 – Tailwind CSS theme toggles preview

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 – Tailwind CSS weather widgets preview

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 – Tailwind CSS clocks preview

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 – Pure CSS music players preview

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 – Pure CSS weather widgets preview

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 – Pure CSS back to top preview

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 – Pure CSS clocks preview

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 – Bootstrap 5 social feeds preview

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 – Tailwind CSS chat widgets preview

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 – Tailwind CSS theme toggles preview

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 – Tailwind CSS countdown timers preview

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 – Bootstrap 5 countdown timers preview

Launch Countdown Card

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

Countdown Timer Cards – Pure CSS countdown timers preview

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.