use-interaction 0.1.0

Interaction state primitives for RustUse UI
Documentation
  • Coverage
  • 13.33%
    4 out of 30 items documented1 out of 8 items with examples
  • Size
  • Source code size: 5.47 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 494.58 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ui
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-interaction

Interaction state primitives for RustUse UI.

Purpose

use-interaction models common UI states, interaction kinds, and user-facing intents. It does not implement event handling or platform-specific input behavior.

Example

use use_interaction::{InteractionIntent, InteractionKind, InteractionState};

let state = InteractionState::Focused;

assert!(state.is_interactive());
assert!(state.is_focus_visible_candidate());
assert_eq!(InteractionKind::Keyboard, InteractionKind::Keyboard);
assert!(InteractionIntent::Confirm.is_committal());

Main types

  • InteractionState
  • InteractionKind
  • InteractionIntent

Facade relationship

The use-ui facade exposes this crate as use_ui::interaction when the interaction or full feature is enabled.