Tailwind CSS Icon Button - Props

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

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


For TypeScript Only

import type { IconButtonProps } 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