Bounded renderer-independent accessibility contracts for generic elements.
Semantic native components own their roles and state policy. This module validates explicit metadata on generic primitives before it crosses a display or transport boundary.
Summary
Functions
Returns generic accessibility attributes accepted by schema containers.
Returns whether an attribute map contains generic accessibility metadata.
Returns role specifications used by validation and native code generation.
Returns the closed generic accessibility role vocabulary.
Returns accessibility state-to-role validation rules.
Validates generic accessibility metadata for one supported element tag.
Types
@type checked() :: boolean() | :mixed
@type interaction() :: :structural | :activate | :composite | :value
@type role() :: String.t()
@type role_spec() :: {atom(), %{gpui: atom(), interaction: interaction()}}
Functions
@spec attrs() :: keyword(GPUI.Schema.Component.attr_type())
Returns generic accessibility attributes accepted by schema containers.
Returns whether an attribute map contains generic accessibility metadata.
@spec role_specs() :: [role_spec()]
Returns role specifications used by validation and native code generation.
@spec roles() :: [String.t()]
Returns the closed generic accessibility role vocabulary.
@spec state_roles() :: [state_rule()]
Returns accessibility state-to-role validation rules.
Validates generic accessibility metadata for one supported element tag.