Tailwind CSS Button - Props

The following props are available for button component. These are the custom props that come with we've added for the button component and you can use all the other native button props as well.

AttributeTypeDescriptionDefault
variantVariantChange button variantfilled
sizeSizeChange button sizemd
colorColorChange button colorblue
fullWidthbooleanChange button to a block level elementfalse
ripplebooleanAdd ripple effect for buttontrue
classNamestringAdd custom className for button''
childrennodeAdd content for buttonNo default value it's a required prop.


For TypeScript Only

import type { ButtonProps } from "@material-tailwind/react";

Types - Variant

type variant = "filled" | "outlined" | "gradient" | "text";

Types - Size

type size = "sm" | "md" | "lg";

Types - Color

type color =
  | "blue-gray"
  | "gray"
  | "brown"
  | "deep-orange"
  | "orange"
  | "amber"
  | "yellow"
  | "lime"
  | "light-green"
  | "green"
  | "teal"
  | "cyan"
  | "light-blue"
  | "blue"
  | "indigo"
  | "deep-purple"
  | "purple"
  | "pink"
  | "red";
Edit this page on Github