euv-ui 0.37.2

Reusable UI component library for the euv framework, providing buttons, cards, modals, inputs, and more.
Documentation
/// Scheme prefix marking a navbar link that opens outside the app.
pub(crate) const NAVBAR_LINK_SCHEME_HTTP_PREFIX: &str = "http";

/// The DOM-owned roving entry retained across reactive renders.
pub(crate) const MENUBAR_TAB_STOP_ATTRIBUTE: &str = "data-menubar-tab-stop";
/// The computed writing-direction property.
pub(crate) const MENUBAR_DIRECTION_PROPERTY: &str = "direction";
/// The right-to-left computed direction.
pub(crate) const MENUBAR_RTL_VALUE: &str = "rtl";
/// The native tab-order attribute.
pub(crate) const MENUBAR_TAB_INDEX_ATTRIBUTE: &str = "tabindex";
pub(crate) const MENUBAR_TRIGGER_SELECTOR: &str = "[data-slot=menubar-trigger]";
pub(crate) const MENUBAR_CONTENT_ID_SUFFIX: &str = "-content";
pub(crate) const MENUBAR_CONTENT_SELECTOR: &str = "[data-slot=menubar-content]";
pub(crate) const MENUBAR_ITEM_SELECTOR: &str = "[role^=menuitem]";
pub(crate) const MENUBAR_ROOT_SELECTOR: &str = "[role=menubar]";
#[cfg(target_arch = "wasm32")]
pub(crate) const MENUBAR_SUB_CONTENT_SELECTOR: &str = "[data-slot=menubar-sub-content]";
pub(crate) const MENUBAR_TRIGGER_ID_PREFIX: &str = "euv-menubar-";
pub(crate) const MENUBAR_STATE_OPEN: &str = "open";
pub(crate) const MENUBAR_STATE_CLOSED: &str = "closed";
/// The expanded-state attribute name for menubar triggers.
pub(crate) const MENUBAR_ARIA_EXPANDED_ATTRIBUTE: &str = "aria-expanded";
/// The disabled-state attribute name for menubar items.
pub(crate) const MENUBAR_ARIA_DISABLED_ATTRIBUTE: &str = "aria-disabled";
/// The native disabled attribute name for interactive elements.
pub(crate) const MENUBAR_DISABLED_ATTRIBUTE: &str = "disabled";
/// The optional disabled-state marker name for menu items.
pub(crate) const MENUBAR_DATA_DISABLED_ATTRIBUTE: &str = "data-disabled";
/// The string value for an enabled ARIA state.
pub(crate) const MENUBAR_TRUE_VALUE: &str = "true";
/// The string value for a disabled ARIA state.
pub(crate) const MENUBAR_FALSE_VALUE: &str = "false";
/// The right-arrow keyboard key name.
pub(crate) const MENUBAR_KEY_ARROW_RIGHT: &str = "ArrowRight";
/// The left-arrow keyboard key name.
pub(crate) const MENUBAR_KEY_ARROW_LEFT: &str = "ArrowLeft";
/// The down-arrow keyboard key name.
pub(crate) const MENUBAR_KEY_ARROW_DOWN: &str = "ArrowDown";
/// The Enter keyboard activation key.
pub(crate) const MENUBAR_KEY_ENTER: &str = "Enter";
/// The Space keyboard activation key.
pub(crate) const MENUBAR_KEY_SPACE: &str = " ";
/// The up-arrow keyboard key name.
pub(crate) const MENUBAR_KEY_ARROW_UP: &str = "ArrowUp";
/// The Home keyboard key name.
pub(crate) const MENUBAR_KEY_HOME: &str = "Home";
/// The End keyboard key name.
pub(crate) const MENUBAR_KEY_END: &str = "End";
/// The Escape keyboard key name.
pub(crate) const MENUBAR_KEY_ESCAPE: &str = "Escape";
/// The role value for a normal menu item.
pub(crate) const MENUBAR_ROLE_MENU_ITEM: &str = "menuitem";
pub(crate) const MENUBAR_SUBMENU_INDICATOR: &str = "›";