tailwindcss/docs/source/docs/cursor.blade.md
Michaël De Boey 50e79c5fa0
cursor
2017-12-02 18:15:58 +01:00

1.5 KiB

extends title description features
_layouts.documentation Cursor Utilities for controlling the cursor style when hovering over an element.
responsive customizable hover focus
true false false false

@include('_partials.work-in-progress')

@include('_partials.class-table', [ 'rows' => [ [ '.cursor-auto', 'cursor: auto;', "Set the mouse cursor to the default browser behavior.", ], [ '.cursor-pointer', 'cursor: pointer;', "Set the mouse cursor to a pointer and indicate a link.", ], [ '.cursor-not-allowed', 'cursor: not-allowed;', "Set the mouse cursor to indicate that the action will not be executed.", ], ] ])

Customizing

Responsive, Hover, and Focus Variants

By default, no hover, focus, or group-hover variants are generated for cursor utilities.

You can control which variants are generated for the cursor utilities by modifying the cursor property in the modules section of your Tailwind config file.

For example, this config will also generate hover and focus variants:

{
    // ...
    modules: { 
        // ...
        cursor: ['responsive', 'hover', 'focus'],
    }
}

Disabling

If you aren't using the cursor utilities in your project, you can disable them entirely by setting the cursor property to false in the modules section of your config file:

{
    // ...
    modules: {
        // ...
        cursor: false,
    }
}