cursors.mdx 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. ---
  2. title: Cursors
  3. description: You can use different cursors to reflect the intended user interaction with particular elements of an interface. The cursor will change when a user hovers over a given element to indicate the action which can be performed.
  4. ---
  5. ## Cursor utilities
  6. Use one of the available cursor utilities depending on the action you want to indicate.
  7. - `.cursor-auto`- the cursor style depends on what's inside a given element
  8. - `.cursor-pointer` - a pointing cursor, used to show that an element is clickable
  9. - `.cursor-move` - a cursor which shows that a given element can be moved
  10. - `.cursor-not-allowed` - a cursor which shows that a user is not allowed to perform an action on an element
  11. - `.cursor-zoom-in` - a cursor which shows that a user can zoom in
  12. - `.cursor-zoom-out` - a cursor which shows that a user can zoom out
  13. - `.cursor-default` - the default cursor
  14. - `.cursor-none` - no cursor
  15. - `.cursor-help` - a cursor which shows that help information is available
  16. - `.cursor-progress` - a cursor which shows that an action is in progress
  17. - `.cursor-wait` - a cursor which shows that a user cannot interact with the element because it is busy
  18. - `.cursor-text` - a cursor which shows that a user can type
  19. - `.cursor-v-text` - a cursor which shows that a user can type in a vertical text input
  20. - `.cursor-grab` - a cursor which shows that a user can grab an element
  21. - `.cursor-grabbing` - a cursor which shows that a user is grabbing an element
  22. ```html example background="white" height="20rem" vcentered
  23. <div class="row row-cards text-center">
  24. <div class="col-2">
  25. <div class="cursor-auto bg-light py-3">auto</div>
  26. </div>
  27. <div class="col-2">
  28. <div class="cursor-pointer bg-light py-3">pointer</div>
  29. </div>
  30. <div class="col-2">
  31. <div class="cursor-move bg-light py-3">move</div>
  32. </div>
  33. <div class="col-2">
  34. <div class="cursor-not-allowed bg-light py-3">not-allowed</div>
  35. </div>
  36. <div class="col-2">
  37. <div class="cursor-zoom-in bg-light py-3">zoom-in</div>
  38. </div>
  39. <div class="col-2">
  40. <div class="cursor-zoom-out bg-light py-3">zoom-out</div>
  41. </div>
  42. <div class="col-2">
  43. <div class="cursor-default bg-light py-3">default</div>
  44. </div>
  45. <div class="col-2">
  46. <div class="cursor-none bg-light py-3">none</div>
  47. </div>
  48. <div class="col-2">
  49. <div class="cursor-help bg-light py-3">help</div>
  50. </div>
  51. <div class="col-2">
  52. <div class="cursor-progress bg-light py-3">progress</div>
  53. </div>
  54. <div class="col-2">
  55. <div class="cursor-wait bg-light py-3">wait</div>
  56. </div>
  57. <div class="col-2">
  58. <div class="cursor-text bg-light py-3">text</div>
  59. </div>
  60. <div class="col-2">
  61. <div class="cursor-v-text bg-light py-3">vertical-text</div>
  62. </div>
  63. <div class="col-2">
  64. <div class="cursor-grab bg-light py-3">grab</div>
  65. </div>
  66. <div class="col-2">
  67. <div class="cursor-grabbing bg-light py-3">grabbing</div>
  68. </div>
  69. </div>
  70. ```
  71. ```html
  72. <div class="cursor-auto">auto</div>
  73. <div class="cursor-pointer">pointer</div>
  74. <div class="cursor-move">move</div>
  75. <div class="cursor-not-allowed">not-allowed</div>
  76. <div class="cursor-zoom-in">zoom-in</div>
  77. <div class="cursor-zoom-out">zoom-out</div>
  78. <div class="cursor-default">default</div>
  79. <div class="cursor-none">none</div>
  80. <div class="cursor-help">help</div>
  81. <div class="cursor-progress">progress</div>
  82. <div class="cursor-wait">wait</div>
  83. <div class="cursor-text">text</div>
  84. <div class="cursor-v-text">vertical-text</div>
  85. <div class="cursor-grab">grab</div>
  86. <div class="cursor-grabbing">grabbing</div>
  87. ```