Skip to content

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

SearchcraftThemeProps

deprecatedLegacyContext?

any

Deprecated

See

React Docs

Returns

ReactNode

Example

import React from 'react';
import { SearchcraftTheme } from '@searchcraft/react-sdk';
const MyThemeProvider = () => {
return <SearchcraftTheme theme="light" customTheme={'[]'} />;
};
export default MyThemeProvider;