API reference: @salmonui/core/theme
ThemeProvidercomponent
import { ThemeProvider } from '@salmonui/core/theme';function ThemeProvider({ theme, children, className, style, ref }: ThemeProviderProps): import("react").JSX.Element;
Theme scope root: <div class="salmon-theme-scope" data-salmon-theme="<hash>">.
Renders no styles itself; the CSS comes from ThemeStyle or from the
precompiled default stylesheet. No browser APIs during render. A theme
that sets density also provides it to components with JavaScript
metrics (the Data Grid row height); unset inherits the enclosing scope's.
Props: ThemeProviderProps
| Name | Signature | Description |
|---|---|---|
themeoptional | theme?: SalmonThemeInput; | |
childrenoptional | children?: ReactNode; | |
classNameoptional | className?: string; | |
styleoptional | style?: CSSProperties; | |
refoptional | ref?: Ref<HTMLDivElement>; |