Tailwind CSS Chip - Props

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

AttributeTypeDescriptionDefault
variantVariantChange chip variantfilled
colorColorChange chip colorblue
valueValueAdd content for chipNo default value it's a required prop.
dismissibleDismissibleMakes the chip dismissibleundefined
animateAnimateChange chip animationundefined
showbooleanChange the chip visibilitytrue
iconnodeAdd icon at the beginning of chipundefined
classNamestringAdd custom className for chip''


For TypeScript Only

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

Types - Variant

type variant = "filled" | "gradient";

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";

Types - Value

type value = string | number;

Types - Dismissible

type dismissible = {
  action?: ReactNode;
  onClose: () => void;
};

Types - Animate

type animate = {
  mount?: object;
  unmount?: object;
};
Edit this page on Github