cursor
Utilities for setting all 36 named Tailwind CSS v4 mouse cursors, wired directly to iced::mouse::Interaction.
Interactive Iced
Rust · WASM
Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let handle = container(bar).tw(tw!("w-1.5 h-full bg-zinc-800 hover:bg-blue-500 cursor-col-resize"));use iss::typed::*;
let style = IssStyle::new().cursor_default().hover(|s| s.cursor_pointer());Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
cursor-pointer / default / auto |
cursor: pointer / default / auto; |
.cursor_pointer() / .cursor_default() |
cursor-text / move / grab / grabbing |
Interactive text & drag cursors; |
.cursor_grab() / .cursor_grabbing() |
cursor-not-allowed / wait / progress / help |
Status & feedback cursors; |
.cursor_not_allowed() / .cursor_wait() |
cursor-ew-resize / ns-resize / col-resize / row-resize |
Resize handle cursors; |
.cursor_col_resize() |
cursor-zoom-in / zoom-out / crosshair / copy |
Canvas & tool cursors; |
.cursor_crosshair() |
cursor-[url(hand.cur),pointer] |
Arbitrary cursor expression; |
.cursor_custom("url(hand.cur),pointer") |