@searchcraft/react-sdk / SearchcraftTheme
SearchcraftTheme(
props
,deprecatedLegacyContext
?):ReactNode
A component that applies Searchcraft's built-in CSS theme to your page. It does not render anything visible—its only function is to manage the CSS styles on the page.
Parameters
props
deprecatedLegacyContext?
any
Deprecated
See
Returns
ReactNode
Example
import React from 'react';
import { SearchcraftTheme } from '@searchcraft/react-sdk';
const MyThemeProvider = () => {
return <SearchcraftTheme theme="light" customTheme={'[]'} />;
};
export default MyThemeProvider;