Use our Chip component based on React and Tailwind CSS for actions in forms, dialogues, and more.
Chip is an essential element of web design. Basically,
Chip is styled links that grab the user's attention. They help users
navigate our websites or apps and drive them to a particular action like submitting
a contact form or placing an order as easy as possible.
See below our Chip example that you can use in your Tailwind CSS and React project. The example also comes in different styles and colors, so you can adapt it easily to your needs.
We provide different chip sizes like sm, md, and lg so you can adapt it easily to your needs. You can simply use the size prop to change the chip size.
In the example below, we've showcased the different chip sizes that you can use in your project.
We provides different chip variants like ghost, outline, solid, and gradient so you can adapt it easily to your needs. You can simply use the variant prop to change the chip variant.
In the example below, we've showcased the different chip variants that you can use in your project.
We provide different chip colors like primary, secondary, info, success, warning, and error so you can adapt it easily to your needs. You can simply use the color prop to change the chip color.
In the example below, we've showcased the different chip colors that you can use in your project.
You can use Chip.DismissTrigger component to add a close button to your chip for better user experience. Use the example below to create a dismissible chip.
You can add an avatar for the Chip component to make it more visually appealing and informative. Use the example below to create Chip with Avatar component.
Alex Andrew
"use client";
import { Chip, Avatar } from "@material-tailwind/react";
export function ChipWithAvatar() {
return (
<Chip>
<Chip.Icon>
<Avatar
size="xs"
src="https://dub.sh/TdSBP0D"
alt="profile-picture"
className="h-full w-full"
/>
</Chip.Icon>
<Chip.Label>Alex Andrew</Chip.Label>
</Chip>
);
}
"use client";
import { Chip, Avatar } from "@material-tailwind/react";
By default Chip comes with a pill shape. If you prefer a rounded shape, you can set the isPill prop to false. Use the example below to create a rounded Chip component.