Interactions
Utility classes that change how users interact with contents of a website.
Text selection
Change the way in which the content is selected when the user interacts with it.
This paragraph will be entirely selected when clicked by the user.
This paragraph has default select behavior.
This paragraph will not be selectable when clicked by the user.
<p class="user-select-all">This paragraph will be entirely selected when clicked by the user.</p>
<p class="user-select-auto">This paragraph has default select behavior.</p>
<p class="user-select-none">This paragraph will not be selectable when clicked by the user.</p>Pointer events
Tabler provides .pe-none and .pe-auto classes to prevent or add element interactions.
<div>
<a href="#" class="pe-none" tabindex="-1" aria-disabled="true">This link</a> can not be clicked.
</div>
<div>
<a href="#" class="pe-auto">This link</a> can be clicked (this is default behavior).
</div>Accessibility
user-select-nonestops users from selecting and copying text. Never put it on content people may want to copy, such as a code snippet, an address, or an error message.pe-noneblocks the mouse but leaves the element in the tab order, so a keyboard user can still reach and activate it. Addtabindex="-1"andaria-disabled="true", as the example above does, or use thedisabledattribute on a real control.aria-disabled="true"tells assistive technology the control is off, but it does not stop the click.disabledon abuttonor aninputdoes both, and is the better choice when the element supports it.user-select-allselects the whole block on one click, which helps for a token or a key. Keep it off long text, where users expect to select a part.
