Also documents the pseudo-class state variants (hover:, focus:, active:, disabled:) and their chaining with responsive/dark-mode prefixes.
Tailwind CSS Interactivity Utilities
Comprehensive utilities for controlling user interaction behaviors and cursor styles in Tailwind CSS v4.1.
Categories
Cursor Utilities
Control the cursor appearance on elements
cursor-* - Standard cursors (auto, default, pointer, wait, text, move, help, not-allowed, none, etc.)
- Support for resize cursors (col-resize, row-resize, n-resize, e-resize, s-resize, w-resize, ne-resize, nw-resize, se-resize, sw-resize, ew-resize, ns-resize, nesw-resize, nwse-resize)
- Zoom cursors (zoom-in, zoom-out)
- Grab cursors (grab, grabbing)
- Special cursors (context-menu, progress, cell, crosshair, vertical-text, alias, copy, no-drop, all-scroll)
Scroll Behavior & Snap
Manage scrolling and snap behavior
scroll-smooth - Enable smooth scrolling
scroll-snap-type - Define snap container behavior (snap-none, snap-x, snap-y, snap-both)
scroll-snap-align - Position snap points (snap-start, snap-center, snap-end)
scroll-snap-stop - Force snap stops (snap-always, snap-normal)
overscroll-behavior - Control overscroll area (overscroll-auto, overscroll-contain, overscroll-none)
- Support for axis-specific variants (x, y)
User Selection
Control text selection behavior
select-none - Disable text selection
select-text - Allow text selection
select-all - Select all text when clicked
select-auto - Browser default selection
Pointer Events
Control element interactivity
pointer-events-none - Element cannot be interacted with
pointer-events-auto - Element is interactive (default)
Touch Action
Define how touch gestures are handled
touch-auto - Browser default touch handling
touch-none - Disable all touch behaviors
touch-pan-x - Allow horizontal panning only
touch-pan-y - Allow vertical panning only
touch-manipulation - Allow panning and zoom only (no double-tap zoom)
- Support for directional variants (pan-up, pan-down, pan-left, pan-right, pinch-zoom)
Resize
Control element resize behavior
resize-none - Disable resizing
resize - Allow resizing in both directions
resize-y - Allow vertical resizing only
resize-x - Allow horizontal resizing only
Caret Color
Set text input cursor color
caret-* - Color utilities for input/textarea cursor
- Supports all Tailwind colors and opacity modifiers
- Full dark mode support
Accent Color
Define accent color for form controls
accent-* - Color utilities for checkboxes, radios, and range inputs
- Supports all Tailwind colors and opacity modifiers
- Full dark mode support
Pseudo-class State Variants
Style elements based on interaction state with hover:, focus:, active:, and disabled: prefixes.
<button class="bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:bg-gray-300 disabled:cursor-not-allowed" disabled>
Click me
</button>
<input class="border focus:border-blue-500 focus:ring-2 focus:ring-blue-200" />
hover: - Applies on mouse hover
focus: - Applies when element has keyboard/pointer focus
active: - Applies during the click/tap
disabled: - Applies when the element has the disabled attribute
- Chainable with responsive and dark-mode prefixes:
md:hover:bg-blue-700, dark:hover:bg-blue-400
Resources
Detailed References
- cursor.md - Load when picking a specific cursor value (resize, zoom, grab, special cursors)
- scroll.md - Load when configuring scroll-snap, smooth scrolling, or overscroll containment
- states.md - Load when styling user-select, pointer-events, touch-action, resize, caret-color, or accent-color on form controls
1---2name: tailwindcss-interactivity3description: "Use when controlling cursor appearance, scroll snap/smooth behavior, text selection, pointer-events, touch actions, or caret/accent colors."4user-invocable: false5metadata:6 source: https://skillmd.com/skills/fusengine/tailwindcss-interactivity7---89<objective>10Complete reference for Tailwind CSS v4.1 interactivity utilities: `cursor-*` (standard, resize, zoom, grab, and special cursors), scroll behavior and snap (`scroll-smooth`, `scroll-snap-type`/`-align`/`-stop`, `overscroll-*`), `select-*` for text-selection control, `pointer-events-*`, `touch-*` action utilities, `resize-*`, `caret-*` color for input cursors, and `accent-*` color for checkboxes/radios/range inputs.1112Also documents the pseudo-class state variants (`hover:`, `focus:`, `active:`, `disabled:`) and their chaining with responsive/dark-mode prefixes.13</objective>1415# Tailwind CSS Interactivity Utilities1617Comprehensive utilities for controlling user interaction behaviors and cursor styles in Tailwind CSS v4.1.1819## Categories2021### Cursor Utilities22Control the cursor appearance on elements23- `cursor-*` - Standard cursors (auto, default, pointer, wait, text, move, help, not-allowed, none, etc.)24- Support for resize cursors (col-resize, row-resize, n-resize, e-resize, s-resize, w-resize, ne-resize, nw-resize, se-resize, sw-resize, ew-resize, ns-resize, nesw-resize, nwse-resize)25- Zoom cursors (zoom-in, zoom-out)26- Grab cursors (grab, grabbing)27- Special cursors (context-menu, progress, cell, crosshair, vertical-text, alias, copy, no-drop, all-scroll)2829### Scroll Behavior & Snap30Manage scrolling and snap behavior31- `scroll-smooth` - Enable smooth scrolling32- `scroll-snap-type` - Define snap container behavior (snap-none, snap-x, snap-y, snap-both)33- `scroll-snap-align` - Position snap points (snap-start, snap-center, snap-end)34- `scroll-snap-stop` - Force snap stops (snap-always, snap-normal)35- `overscroll-behavior` - Control overscroll area (overscroll-auto, overscroll-contain, overscroll-none)36- Support for axis-specific variants (x, y)3738### User Selection39Control text selection behavior40- `select-none` - Disable text selection41- `select-text` - Allow text selection42- `select-all` - Select all text when clicked43- `select-auto` - Browser default selection4445### Pointer Events46Control element interactivity47- `pointer-events-none` - Element cannot be interacted with48- `pointer-events-auto` - Element is interactive (default)4950### Touch Action51Define how touch gestures are handled52- `touch-auto` - Browser default touch handling53- `touch-none` - Disable all touch behaviors54- `touch-pan-x` - Allow horizontal panning only55- `touch-pan-y` - Allow vertical panning only56- `touch-manipulation` - Allow panning and zoom only (no double-tap zoom)57- Support for directional variants (pan-up, pan-down, pan-left, pan-right, pinch-zoom)5859### Resize60Control element resize behavior61- `resize-none` - Disable resizing62- `resize` - Allow resizing in both directions63- `resize-y` - Allow vertical resizing only64- `resize-x` - Allow horizontal resizing only6566### Caret Color67Set text input cursor color68- `caret-*` - Color utilities for input/textarea cursor69- Supports all Tailwind colors and opacity modifiers70- Full dark mode support7172### Accent Color73Define accent color for form controls74- `accent-*` - Color utilities for checkboxes, radios, and range inputs75- Supports all Tailwind colors and opacity modifiers76- Full dark mode support7778## Pseudo-class State Variants79Style elements based on interaction state with `hover:`, `focus:`, `active:`, and `disabled:` prefixes.8081```html82<button class="bg-blue-500 hover:bg-blue-600 active:bg-blue-700 disabled:bg-gray-300 disabled:cursor-not-allowed" disabled>83 Click me84</button>8586<input class="border focus:border-blue-500 focus:ring-2 focus:ring-blue-200" />87```8889- `hover:` - Applies on mouse hover90- `focus:` - Applies when element has keyboard/pointer focus91- `active:` - Applies during the click/tap92- `disabled:` - Applies when the element has the `disabled` attribute93- Chainable with responsive and dark-mode prefixes: `md:hover:bg-blue-700`, `dark:hover:bg-blue-400`9495## Resources96- [Official Tailwind CSS Docs](https://tailwindcss.com/)97- [Cursor Documentation](https://tailwindcss.com/docs/cursor)98- [Scroll Behavior Documentation](https://tailwindcss.com/docs/scroll-behavior)99- [Scroll Snap Documentation](https://tailwindcss.com/docs/scroll-snap)100- [User Select Documentation](https://tailwindcss.com/docs/user-select)101- [Pointer Events Documentation](https://tailwindcss.com/docs/pointer-events)102- [Touch Action Documentation](https://tailwindcss.com/docs/touch-action)103- [Resize Documentation](https://tailwindcss.com/docs/resize)104- [Caret Color Documentation](https://tailwindcss.com/docs/caret-color)105- [Accent Color Documentation](https://tailwindcss.com/docs/accent-color)106107## Detailed References108109- [cursor.md](references/cursor.md) - Load when picking a specific cursor value (resize, zoom, grab, special cursors)110- [scroll.md](references/scroll.md) - Load when configuring scroll-snap, smooth scrolling, or overscroll containment111- [states.md](references/states.md) - Load when styling user-select, pointer-events, touch-action, resize, caret-color, or accent-color on form controls