Subscribes to custom property values defined in the wallpaper manifest (fluxlay.yaml) and customized by the end user through the Fluxlay app settings UI.
Import
import { useProperties } from "@fluxlay/react";
Signature
function useProperties<T extends PropertyValues = PropertyValues>(): T;
Type Parameters
Parameter
Default
Description
T
PropertyValues
Shape of the property values object. Extends Record<string, number | string | boolean | string[] | null>.
Return Value
Returns an object containing the current property values. Each key corresponds to a property ID defined in fluxlay.yaml. The values reflect the defaults from the manifest, overridden by any user customizations.
Property values are fetched on mount and then streamed in real time. When the user changes a value in the settings UI, the hook re-renders with the updated value immediately.
User customizations are persisted per wallpaper slug. Reinstalling or re-assigning the same wallpaper restores the previous customizations.
This hook only works inside the Fluxlay desktop app. In a normal browser, it returns {}.
image / file values are host OS file paths. Implement a fallback in your wallpaper, since the file may move or be deleted after selection.
The manifest must declare schemaVersion: 1. The legacy type: string is removed and split into select (with options) and text (free-form input).