Skip to content
Iris Hub

Interactions

Interaction utilities change how people interact with content. user-select-all, user-select-auto and user-select-none control text selection, while pe-none and pe-auto turn pointer events off and on. pe-none only affects the mouse, so also use tabindex="-1" and aria-disabled for disabled links.

1Select all on click

user-select-all selects the whole text with one click, handy for codes and keys.

Licence key: IRIS-HUB-7576-9189

2Prevent text selection

user-select-none stops text from being selected, for example on interface labels.

user-select-auto Modern workflow smart community
user-select-all Smart goal bright idea
user-select-none Fast plan modern update

3Disable clicks with pe-none

pe-none makes a link ignore the pointer; add aria-disabled and tabindex="-1" for keyboard users.

4Re-enable on a child

pe-none on a parent and pe-auto on one child: only the child reacts.

This panel has pe-none, so its links do not react: ignored link.

pe-auto button

5Copy a coupon code

A user-select-all code next to a copy button.

SAVE31

6Click-through overlay

A decorative gradient overlay with pe-none lets clicks reach the link under it.

Our team has done this many times, so you never have to guess. Our terrace is open from spring to autumn, with heaters for cooler evenings.

Continue reading

7Toolbar labels that do not select

user-select-none on a toolbar avoids accidental highlighting on double click.

8Select an order number

Order numbers in a table use user-select-all so they copy in one go.

OrderDateTotal
#TX-2710Jan 15, 2026$177.50
#TX-8631Sep 8, 2026$60.14

9Icon that never steals the click

pe-none on the icon inside a button makes sure the button is the click target.

10Read-only rating

Stars with pe-none show a score that cannot be changed.

Your rating is locked

11Locked wizard steps

Future steps get pe-none until the current one is complete.

12Watermark that cannot be selected

pe-none and user-select-none on a watermark keep it out of the way.

Children are always welcome, with a menu made just for them. We listen first, then build a plan around what you actually need. Book a table online in seconds, or call us for groups of eight or more.

13Terminal command

The prompt sign has user-select-none, the command user-select-all: copying gives only the command.

$ npm install iris-hub

14Email to copy

user-select-all on an email address in a contact card.

Ravi Morgan
QA Engineer
mateo.patel@example.com

15Unavailable plan

The sold out plan card is pe-none, the others stay clickable.

16Drag handle

user-select-none on sortable rows so dragging does not highlight text.

  • Takeaway
  • Dine-in
  • Private events

17Preview of a disabled slider

pe-none on a range input shows the value without allowing changes.

18Selectable colour values

Colour tokens in a style guide use user-select-all for quick copying.

--wt-primary
--wt-secondary
--wt-surface

19Image that cannot be dragged into selection

user-select-none on a gallery strip keeps double clicks from selecting captions.

Photo 1
Kyoto
Photo 2
Dublin

20Loading state on a form

While saving, the form is disabled (a disabled fieldset) and gets pe-none and a reduced opacity.