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; |
Examples
Section titled “Examples”Basic example
Section titled “Basic example”select-none marks text as not selectable; the cursor stays an arrow over it.


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