Skip to content

Buttons: HTML, React and WordPress components

Primary, secondary, icon and loading buttons: consistent styles, a large enough hit area and a visible keyboard focus.14 components (buttons) that are accessible and responsive, ready for your site: HTML + Tailwind, React, plain CSS and a WordPress block.

All 14 resources

  • A row of buttons to share the page on Facebook, LinkedIn, WhatsApp or by email, with a copy-link button and no third-party script.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Toggle heart buttons that count favourites, remember them between visits and announce them to screen readers.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A button that adds an event to Google Calendar, Outlook or any calendar through an .ics file, with no third-party service.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A button that copies an IBAN, a reference, an address or a promo code and confirms "Copied", on screen and to screen readers.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A WhatsApp button pinned to the bottom of the screen that opens a welcome bubble with common topics and a pre-filled message, with no third-party widget.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A bar pinned to the bottom of mobile screens with Call and Directions buttons and a live open-now status, built for trades and local shops.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Circular icon buttons with an accessible tooltip on hover and focus.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A primary action joined to a menu of secondary options.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A chunky button that sinks under the finger, for primary actions.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A colorful pill crossed by a light sheen on hover.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A text link whose underline draws from left to right on hover.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A ghost button whose outline lights up and spins on hover.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A button that announces the pending request then success, without changing width.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A group of icon buttons with a single active choice, like text alignment.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component