@tempots/ui
ProvideAppearance() function
Provides a child component with an appearance context, which can be used to determine the current appearance (light or dark) based on the user's system preferences.
The appearance context is updated whenever the user's system preferences change, and the component is cleaned up when it is no longer needed.
Signature:
ProvideAppearance: (child: TNode) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
child |
TNode |
The child component to be provided with the appearance context. |
Returns: Renderable
The child component with the appearance context.