Skip to content

user-select

Utilities for controlling whether users can highlight and select text inside an element.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating user-select
ISS preview for user-select
use iced::widget::text;
use iss::{tw, TwExt};
let token = text("iss-0.1.0").tw(tw!("font-mono text-xs select-all text-sky-300"));
Tailwind Class CSS Property / Effect iss::typed Builder
select-none user-select: none; .select_none()
select-text user-select: text; .select_text()
select-all user-select: all; .select_all()
select-auto user-select: auto; .select_auto()

cursor · pointer-events