Context API

Powerful dependency injection for sharing state across components without prop drilling.

Theme Switcher

Click buttons to cycle through themes. All cards receive the theme via props (reactive signal).

Card 1

Dark

Card 2

Dark

Card 3

Dark

Card 4

Dark

Nested Provider Override

Inner providers override outer ones. Each level can have its own theme.

Root: Dark
Nested: Ocean
How it works