Skip to content

User Select

Control text selection

Syntax

visual="select:[value]"

Values

ValueCSS OutputDescription
noneuser-select: nonePrevent selection
textuser-select: textAllow text selection
alluser-select: allSelect all on click
autouser-select: autoDefault behavior

Examples

html
<div visual="select:none">Cannot select this text</div>

Preview

User Select

visual="select:none" - Control whether text can be selected

none (try select)
all (click to select)
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:small" visual="bg:primary text:white rounded:small select:none">none (try select)</div>
  <div space="p:small" visual="bg:success text:white rounded:small select:all">all (click to select)</div>
</div>