These utilities can be useful when creating layouts that include functionality but lack an appropriate on-hover cursor. For example, adding .cursor-pointer
to an element that is interactive but uses the default cursor by default will ensure that visitors know they can click on it.
Class | Properties |
---|---|
.cursor-pointer | cursor: pointer; |
Usage
Use .cursor-pointer
to change the mouse cursor to indicate an interactive element.
Variants
By default, no responsive or hover-state variants are generated for outline utilities.
Responsive
To include responsive variants like .md:cursor-pointer
, add "cursor"
to the $responsive-variants
variable in your theme’s _variables.scss
file when recompiling your CSS:
$responsive-variants: (
// ...
"cursor",
);
Hover-state
To include hover-state variants like .hover:cursor-default
, add "cursor"
to the $hover-variants
variable:
$hover-variants: (
// ...
"cursor",
);