@tempots/ui

UseAppearance() function

Makes the AppearanceType available to the child component by consuming the signal provided by the parent. The result of the function is returned as the final output.

Signature:

UseAppearance: (fn: (appearance: Signal<AppearanceType>) => TNode) => TNode

Parameters

Parameter

Type

Description

fn

(appearance: Signal<AppearanceType>) => TNode

A function that accepts the AppearanceType signal and returns a TNode element.

Returns: TNode

The TNode element returned by the provided function.