Hook useSkinOverrides()
Call Signature
useSkinOverrides<
Override>(overrides:Map<typeofSkin,Override>):Override|undefined
Source: skinOverrides.ts
Computes the override for the current skin.
For each entry, if the key is (a subclass of) the current type of skin, the override is applied. If multiple entries match the current skin, they are merged.
Type Parameters
Override
Override
The type of override.
Parameters
overrides
The overrides to check.
Returns
Override | undefined
All matching overrides merged, or undefined if none match.
See
Call Signature
useSkinOverrides<
Default,Override>(overrides:Map<typeofSkin,Override>,defaultValue:Default):Default|MergeValues<Default,Override>
Computes the override for the current skin.
For each entry, if the key is (a subclass of) the current type of skin, the override is applied. If one or more entries match the current skin, they are all merged with the default value.
Type Parameters
Default
Default
The type of the default value.
Override
Override = undefined
The type of override.
Parameters
overrides
The overrides to check.
defaultValue
Default
The default value to merge the matching overrides with.
Returns
Default | MergeValues<Default, Override>
The default value, merged with all overrides that match.