Switching to classic Search Modal
Switching ot the classic search modal (React-UI)
- Where you wrap your app in
<DepictProvider>
, import and pass in theClassicSearchModal
into thesearch
property, assearchModalComponent
.
import { DepictProvider, ClassicSearchModal } from "@depict-ai/react-ui";
return (
<DepictProvider
// … other properties
search={{
// … other search configuration
searchModalComponent: ClassicSearchModal,
}}
>
<div className="App">...</div>
</DepictProvider>
);
- Where you import the Depict UI SCSS, set the
$search-modal-layout
variable to"classic"
.
@use "@depict-ai/react-ui" as plp-styling with (
$search-modal-layout: "classic"
);
Was this page helpful?