NeoConfig holds framework-wide settings that apply before the first frame. Pass it to NeoApp.config, or update it at runtime through neoConfigProvider.
Example
Properties
Content
bool
default:"true"
When
true, NeoInteractable plays light haptics on press (and on release after the min-press duration), unless overridden by NeoInteractable.enableHaptics. NeoButton uses this shell for press haptics. Hold-to-confirm buttons disable interactable haptics.bool
default:"true"
When
true, NeoToast.show and typed NeoToast.update play presentation haptics: light for loading show, heavy for other non-danger types, error for danger.Provider
NotifierProvider
Exposes the current
NeoConfig. Watch it for reactive updates, or call updateConfig on the notifier to change settings at runtime.Best Practices
- Prefer seeding config through
NeoApp.configso the first frame uses your intended defaults. - Use
NeoInteractable.enableHapticsfor one-off exceptions instead of flipping the global interaction flag.
Integration Notes
NeoAppoverridesneoConfigProviderwith your seeded config so there is no post-frame flash.- Hold-to-confirm buttons manage their own feedback and pass
enableHaptics: falseintoNeoInteractable.

