๐ŸŒ
Material Tailwind
material-tailwind.com โ€บ docs โ€บ react โ€บ button
Tailwind CSS Button for React - Material Tailwind
Customise your web projects with our easy-to-use button component for Tailwind CSS and React using Material Design guidelines.
๐ŸŒ
TW Elements
tw-elements.com โ€บ docs โ€บ react โ€บ components โ€บ buttons
Tailwind CSS React Buttons - Free Examples & Tutorial
Use responsive buttons component with helper examples for links, disabled state, block buttons, sizing, outlines & more. Use these default button styles with multiple colors to indicate an action or link within your website. ... import React from 'react'; export default function App() { return ( <button type="button" className="inline-block rounded bg-primary px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white shadow-[0_4px_9px_-4px_#3b71ca] transition duration-150 ease-in-out hover:bg-primary-600 hover:shadow-[0_8px_9px_-4px_rgba(59,113,202,0.3),0_4px_18px_0_rgba(59,113,2
๐ŸŒ
Horizon UI
horizon-ui.com โ€บ docs-tailwind โ€บ docs โ€บ react โ€บ button
Horizon UI - Trendiest Free Admin Dashboard Template and Components Library for Tailwind CSS React
Use the following examples to implement a simple default button element for your Tailwind CSS React project. DefaultSecondaryDarkBlueRedGreenPurpleYellowOrange ยท <button className="rounded-xl bg-brand-500 px-5 py-3 text-base font-medium text-white transition duration-200 hover:bg-brand-600 active:bg-brand-700 dark:bg-brand-400 dark:text-white dark:hover:bg-brand-300 dark:active:bg-brand-200"> Default </button> <button className="rounded-xl bg-gray-100 px-5 py-3 text-base font-medium text-navy-700 transition duration-200 hover:bg-gray-200 active:bg-gray-300 dark:bg-white/10 dark:text-white dar
๐ŸŒ
DEV Community
dev.to โ€บ mhcrocky โ€บ creating-a-reusable-button-component-with-react-and-tailwind-css-4dh5
Creating a reusable Button component with React and Tailwind CSS - DEV Community
November 9, 2022 - import clsx from "clsx"; import { forwardRef } from "react"; interface ButtonOptions { /** * Button display variants * @default "solid" * @type ButtonVariant */ variant?: ButtonVariant; } type Ref = HTMLButtonElement; export type ButtonProps = React.DetailedHTMLProps< React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement > & ButtonOptions; type ButtonVariant = "outline" | "solid" | "ghost"; const getVariant = (variant: ButtonVariant) => { switch (variant) { case "outline": return "btn-outline"; case "ghost": return "btn-ghost"; default: return undefined; } }; const Button = forwardR
๐ŸŒ
Medium
medium.com โ€บ @theambi โ€บ how-to-create-a-reusable-button-component-in-reactjs-with-tailwindcss-3f31dec45aaa
How to create a reusable Button component in ReactJS with TailwindCSS | by Golden Ekpendu | Medium
February 7, 2025 - So this got me thinking: could I also utilize props to create a button component with Tailwind CSS? This is my solution: Step One: Create a React app, alongside TailwindCSS
๐ŸŒ
Tailwind CSS
v1.tailwindcss.com โ€บ components โ€บ buttons
Buttons - Tailwind CSS
<!-- Using utilities: --> <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> Button </button> <!-- Extracting component classes: --> <button class="btn btn-blue"> Button </button> <style> .btn { @apply font-bold ...
๐ŸŒ
DEV Community
dev.to โ€บ teyim โ€บ create-reusable-button-components-with-reacttypescript-tailwind-and-tailwind-variants-2j7d
Create reusable button Components with React,Typescript , Tailwind and Tailwind-variants 2025 - DEV Community
February 4, 2025 - Great. now let's dive into the ButtonStyles.ts components and add some basic button styles. We are going to create a baseButton variant, this variant will contain all the base styles that every button should have. We do this by importing tv from tailwind-variants, passing it an object containing our styles, and assigning that to the baseButton constant
๐ŸŒ
Flowbite React
flowbite-react.com โ€บ docs โ€บ components โ€บ button
React Button - Flowbite
These beautifully colored buttons built with the gradient color utility classes from Tailwind CSS can be used as a creative alternative to the default button styles. ... import { Button } from "flowbite-react"; export function Component() { return ( <div className="flex flex-wrap gap-2"> <Button className="bg-gradient-to-r from-blue-500 via-blue-600 to-blue-700 text-white hover:bg-gradient-to-br focus:ring-blue-300 dark:focus:ring-blue-800"> Blue </Button> <Button className="bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white hover:bg-gradient-to-br focus:ring-green-300 dark:
Find elsewhere
๐ŸŒ
Lucky Media
luckymedia.dev โ€บ blog โ€บ creating-a-reusable-button-component-with-react-and-tailwind
Reusable React Button Component with Tailwind CSS - Lucky Media
August 11, 2021 - Learn to build a reusable React Button component using Tailwind CSS for efficient and scalable web application development.
Call ย  +14696942442
Address ย  325 North St. Paul Street, 75201, Dallas
๐ŸŒ
Headless UI
headlessui.com โ€บ react โ€บ button
Button - Headless UI
If you're using Tailwind CSS, the data attribute modifier makes this easy: import { Button } from '@headlessui/react' function Example() { return ( <Button className="rounded bg-sky-600 px-4 py-2 text-sm text-white data-hover:bg-sky-500 data-hover:data-active:bg-sky-700"> Save changes </Button> ) } See the component API for a list of all the available data attributes.
๐ŸŒ
Material Tailwind
material-tailwind.com โ€บ docs โ€บ react โ€บ button-group
Tailwind CSS Button Group for React - Material Tailwind
Use our React Button Group styled with Tailwind CSS to group together a series of buttons in a single layout. The Button Group component is an essential element of web design. Basically, it is stack of buttons.
๐ŸŒ
DEV Community
dev.to โ€บ designly โ€บ create-a-universal-button-with-react-tailwindcss-do9
Create a Universal Button With React + TailwindCSS - DEV Community
May 4, 2025 - import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; import tailwindcss from "@tailwindcss/vite"; // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], }); ... Now we need to create a helper function to help us deal with variable Tailwind classes (src/lib/cn.ts): import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } If this looks familiar, it's the same function that ShadCN uses to merge class names. Next, we'll create our button component at src/components/button.tsx:
๐ŸŒ
Tailwindui
catalyst.tailwindui.com โ€บ docs โ€บ button
Button - Catalyst UI Kit for Tailwind CSS
import { Button } from ... as well as component instances like <PlusIcon />. The Button component is designed to work best with 16ร—16 icons....
๐ŸŒ
Flowbite
flowbite.com โ€บ docs โ€บ components โ€บ buttons
Tailwind CSS Buttons - Flowbite
Use the button component inside forms, as links, social login, payment options with support for multiple styles, colors, sizes, gradients, and shadows
๐ŸŒ
Aceternity UI
ui.aceternity.com โ€บ components โ€บ tailwind css buttons
Tailwind CSS buttons | Aceternity UI Components
/** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", "./src/app/**/*.{js,ts,jsx,tsx,mdx}", ], darkMode: "class", theme: { extend: { animation: { shimmer: "shimmer 2s linear infinite", }, keyframes: { shimmer: { from: { backgroundPosition: "0 0", }, to: { backgroundPosition: "-200% 0", }, }, }, }, }, plugins: [], }; ... "use client"; import React from "react"; import { IconClipboard } from "@tabler/icons-react"; import { cn } from "@/lib/utils"; export const ButtonsCard = ({ children, class
๐ŸŒ
Originui
originui.com โ€บ button
Button components built with React and Tailwind CSS
A component for displaying keyboard keys and shortcuts. ... Renders an accessible label associated with controls. A list of actions in a dropdown, enhanced with keyboard navigation.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ reactjs โ€บ create-buttons-ui-using-react-and-tailwind-css
Create Buttons UI using React and Tailwind CSS - GeeksforGeeks
July 23, 2025 - The component uses Tailwind utility classes like rounded, text-white, bg-blue-500, and hover bg-blue-600 to create different styles for the button. npx create-react-app buttons-ui-tailwind cd buttons-ui-tailwind
๐ŸŒ
DEV Community
dev.to โ€บ apkoponen โ€บ how-to-create-a-buttongroup-component-with-react-and-tailwind-css-1obo
How to Create a ButtonGroup Component with React and Tailwind CSS? - DEV Community
May 16, 2020 - In order to do this, we need to add a new component that we will name <ButtonGroupButton /> (I know, the name sucks!). If we added our pseudo-class variants to our <Button /> component, it would break when it would be the first or last child ...
๐ŸŒ
Rocky's Dev Blog
rockyessel.hashnode.dev โ€บ how-to-create-a-reactjstypescript-reusable-custom-button-component-with-tailwindcss
Create React Custom Button with TailwindCSS & TypeScript.
September 3, 2023 - Now with this, we are done with creating a reusable dynamic button component that we can use throughout our application. But note that the className has some tailwind class in them, I added this because we to give the button a default styling, and then depending on where we want to add our ...