Skip to content

user-select

Utilities for controlling whether the user can select text in an element.

Class Effect
select-none user-select: none;
select-text user-select: text;
select-all user-select: all;
select-auto user-select: auto;

select-none marks text as not selectable; the cursor stays an arrow over it.

user-select: Basic exampleuser-select: Basic example
ui.text("The quick brown fox jumps over the lazy dog.", "select-none text-sm text-gray-700 dark:text-gray-300")