User Select

Set the ability for users to select text in an element.

Limited availability

This feature does not work in some of the most widely-used browsers.

Chrome
Edge
Firefox
Safari

us-a
user-select: all;
us-auto
user-select: auto;
us-none
user-select: none;
us-t
user-select: text;

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:us-(value)
Small640px
md:us-(value)
Medium768px
lg:us-(value)
Large1024px
xxl:us-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:us-(value)