Skip to content

API Reference / @gtkx/react / @gtkx/react / SettingsProvider

Function: SettingsProvider() ​

SettingsProvider(__namedParameters): ReactNode

Defined in: packages/react/src/components/settings-provider.tsx:35

Owns the Gio.Settings instance of a schema and gives it to the useSetting and useBindSetting calls below that name the same schema. Providers nest, one per schema or relocatable path.

The children render once the instance exists, and are remounted when schema names another id or path.

Parameters ​

__namedParameters ​

SettingsProviderProps

Returns ​

ReactNode