Skip to content

RevTurbineThemeProvider

RevTurbineThemeProvider(__namedParameters): any

Provides the active RevTurbineTheme to all child SDK components. Typically rendered internally by RevTurbineProvider — consumers don’t need to add this manually.

The theme is merged over DEFAULT_THEME here, so useRevTurbineTheme always returns a complete theme.

That merge used to be the caller’s job while the prop was typed as a complete RevTurbineTheme, which made a partial theme a runtime crash rather than a type error: components read theme.typography.fontSize and got undefined on a theme that only set colors. RevTurbineThemeInput has always documented itself as “all values are optional — the SDK deep-merges with defaults”; this is the component honouring that.

RevTurbineThemeProviderProps

any