interactions.mdx 845 B

1234567891011121314151617181920212223
  1. ---
  2. title: Interactions
  3. description: Utility classes that change how users interact with contents of a website.
  4. ---
  5. ## Text selection
  6. Change the way in which the content is selected when the user interacts with it.
  7. ```html code example
  8. <p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
  9. <p class="user-select-auto">This paragraph has default select behavior.</p>
  10. <p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>
  11. ```
  12. ## Pointer events
  13. Tabler provides `.pe-none` and `.pe-auto` classes to prevent or add element interactions.
  14. ```html code example
  15. <p><a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.</p>
  16. <p><a href="#" class="pe-auto">This link</a> can be clicked (this is default behavior).</p>
  17. ```