AccrueAdmin.Components.InlineId (accrue_admin v1.5.0)

Copy Markdown View Source

Display span for short IDs, Stripe IDs, and event IDs.

Applies overflow truncation per the CMP-02 overflow contract: overflow: hidden; text-overflow: ellipsis; white-space: nowrap constrained to a CSS max-width (default 16ch). The title attribute provides full-text access on hover/focus for assistive technology and mouse users.

The @max_width attr is a structural constraint (not a design override) and is exempt from the CMP-05 inline-style guard, which targets ax-button/ax-field/ax-input/ax-select/ax-status-badge/ ax-money/ax-json. The ax-inline-id class is not in that list.

Summary

Functions

inline_id(assigns)

Attributes

  • id_value (:string) (required)
  • max_width (:string) - Defaults to "16ch".
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.