Util
Important utilities for UI development.
Properties
Colors
This item is read only and cannot be modified. Read OnlyUtil.Colors:
table
Colors imported from TailwindCSS's color palette.
Functions
Fallback
Util.
Fallback
(
Value:
Fusion.UsedAs
<
any
>
,
Fallback:
any
) →
any
Defaults the given Value
to Fallback
if nil.
CombineProps
Util.
CombineProps
(
Source:
Fusion.PropertyTable
,
Target:
Fusion.PropertyTable
,
ExcludedKeys:
{
any
}
?
) →
Fusion.PropertyTable
Combines two sets of props for easy passthrough, adding Source
's props to Target
. If a prop is already in Target
, it will be overridden.
EnsureValue
Util.
EnsureValue
(
Scope:
Fusion.Scope
<
any
>
,
Value:
Fusion.UsedAs
<
any
>
) →
Fusion.Value
<
Fusion.Scope
<
any
>
,
any
>
Converts the Value
argument to a Fusion.Value
object, if it is not one already.