ThemeComponent
import type { ThemeComponent } from "@pitlane/theme";The <Theme /> component createTheme returns. Render it
once near the document root to install the custom properties.
It is an ordinary component with one extra property, $theme,
holding the init it was compiled from, so a published theme can be
handed straight back to createTheme.
Type Parameters
T
T
ThemeComponent(handle): () => RemixElement;The <Theme /> component createTheme returns. Render it
once near the document root to install the custom properties.
It is an ordinary component with one extra property, $theme,
holding the init it was compiled from, so a published theme can be
handed straight back to createTheme.
Parameters
handle
Handle<ThemeProps>
Returns
() => RemixElement
Properties
$theme
readonly $theme: T;