Tailwind CSS Navbar - Props

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

AttributeTypeDescriptionDefault
variantVariantChange navbar variantfilled
colorColorChange navbar colorwhite
shadowbooleanAdd box-shadow for navbartrue
blurredbooleanAdd blur backdrop effect for navbar and makes it's background color whitetrue
fullWidthbooleanChange navbar to a block level element and remove its border radiusfalse
classNamestringAdd custom className for navbar''
childrennodeAdd content for navbarNo default value it's a required prop.


For TypeScript Only

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

Tailwind CSS Mobile Nav - Props

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

AttributeTypeDescriptionDefault
openbooleanIf true the mobile nav will expandtrue
animateAnimateChange mobile nav animationundefined
classNamestringAdd custom className for mobile nav''
childrennodeAdd content for mobile navNo default value it's a required prop.


For TypeScript Only

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

Types - Variant

type variant = "filled" | "gradient";

Types - Color

type color =
  | "transparent"
  | "white"
  | "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 - Animate

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