yew-nav-link 0.9.3

Navigation link component for Yew with automatic active state detection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-FileCopyrightText: 2024-2026 RAprogramm <andrey.rozanov-vl@gmail.com>
// SPDX-License-Identifier: MIT

//! Keyboard direction enum.

/// Direction of keyboard navigation within a list.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[must_use]
pub enum KeyboardDirection {
    /// Move to the next item (right or down).
    Forward,
    /// Move to the previous item (left or up).
    Backward
}