@ottili/foundation-settings
v1.0.13
Published
Foundation settings runtime with React bindings (SoT §24). Re-exports the core settings module and adds hooks and UI components.
Downloads
784
Readme
@ottili/foundation-settings
Foundation settings runtime with React bindings (SoT \u00a724).
Scope
This package re-exports the settings runtime from @ottili/foundation-core and adds React
components and hooks for building a settings UI. It does not own the server-side settings
manifest or permission filtering; it consumes them.
Exports
- All settings runtime helpers from
@ottili/foundation-core/settings(SettingsRegistry,groupSettings,searchSettings,resolveSettingsRoute,resolveSetting,previewSetting, etc.). SettingsProvider— React context that owns aSettingsRegistry.useSettings,useSettingsSections,useSettingsSearch— hooks for reading the registry.SettingsSectionList— minimal list component.
Usage
import {
SettingsProvider,
SettingsSectionList,
useSettingsSearch,
} from "@ottili/foundation-settings";
<SettingsProvider context={foundationContext} sections={sections}>
<SettingsSearch />
<SettingsSectionList emptyMessage="No settings sections" />
</SettingsProvider>