Raxol.UI.Components.Harness.Ids (Raxol v2.6.1)

View Source

Shared id-fallback helper for harness components.

Returns the caller-supplied :id from props (keyword list or map), or a fresh "<prefix>-<n>" where n is a positive unique integer.

Summary

Functions

default_id(props, prefix)

@spec default_id(keyword() | map(), String.t()) :: term()