The rendering modes and what each allows (spec/02 §3).
iex> Macaw.Component.Mode.allows?(:socketless, :hooks)
true
iex> Macaw.Component.Mode.allows?(:neutral, :live_regions)
false
Summary
Functions
The four modes, in order.
Whether a mode allows a feature. An unknown mode or feature raises ArgumentError: it is
a programming error, not data.
The features a mode may allow, in order.
Types
Functions
@spec all() :: [t(), ...]
The four modes, in order.
Whether a mode allows a feature. An unknown mode or feature raises ArgumentError: it is
a programming error, not data.
@spec features() :: [atom(), ...]
The features a mode may allow, in order.