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

View Source

Shared id-fallback helper for harness components.

Returns the caller-supplied :id from props (keyword list or map), or the next "<prefix>-<n>" from Raxol.Core.ID, which counts per process so identical boots mint identical ids.

Summary

Functions

default_id(props, prefix)

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