cursors.mdx 3.5 KB

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