Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Tailwind CSS Interactivity Complete Reference

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Tailwind CSS is a highly customizable, low-level CSS framework that gives you all of the buildings blocks that you need. Tailwind CSS Interactivity utility provides classes like Tailwind CSS Appearance that control. This class is mostly used for cursors how it is interactive with another element.

Below example will give you a brief idea about the Interactivity of Tailwind CSS:

Example:

HTML




<!DOCTYPE html>
<html>
<head>
    <link href=
"https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css"
          rel="stylesheet">
</head>
  
<body class="text-center">
    <h1 class="text-green-600 text-5xl font-bold">
        GeeksforGeeks
    </h1>
    <b>Tailwind CSS Cursor Class</b>
    <div id="main" class="p-2 justify-around ml-32 h-26 w-2/3 flex
                          items-stretch
                          bg-green-200 border-solid border-4
                          border-green-900 gap-4">
        <div class="cursor-auto bg-blue-600
                    w-full h-8 rounded-lg">
            Hover over
        </div>
        <div class="cursor-default bg-yellow-600
                    w-full h-8 rounded-lg">
            Hover over
        </div>
        <div class="cursor-pointer bg-purple-600
                    w-full h-8 rounded-lg">
            Hover over
        </div>
        <div class="cursor-wait bg-green-600
                    w-full h-8 rounded-lg">
            Hover over
        </div>
    </div>
</body>
  
</html>

Output:

Tailwind CSS Interactivity

Tailwind CSS Interactivity


My Personal Notes arrow_drop_up
Last Updated : 28 Mar, 2022
Like Article
Save Article
Similar Reads
Related Tutorials