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. The mode and the feature are the function's contract,
so an unknown one fails as any wrong call does, a FunctionClauseError: 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. The mode and the feature are the function's contract,
so an unknown one fails as any wrong call does, a FunctionClauseError: a programming
error, not data.
@spec features() :: [atom(), ...]
The features a mode may allow, in order.