diff --git a/clients/search-component/README.md b/clients/search-component/README.md index 492b97bd7b..dfc028b1be 100644 --- a/clients/search-component/README.md +++ b/clients/search-component/README.md @@ -94,7 +94,8 @@ declare module "solid-js" { | defaultAiQuestions | string[] | [] | | brandLogoImgSrcUrl | string | null | | brandName | string | null | -| brand Color | string | #CB53EB | +| brandColor | string | #CB53EB | +| brandFontFamily | string | Maven Pro | | problemLink | string (example: "mailto:help@trieve.ai?subject=") | null | | responsive | boolean | false | diff --git a/clients/search-component/example/src/routes/index.lazy.tsx b/clients/search-component/example/src/routes/index.lazy.tsx index 4c01f69f1b..b726417efd 100644 --- a/clients/search-component/example/src/routes/index.lazy.tsx +++ b/clients/search-component/example/src/routes/index.lazy.tsx @@ -14,6 +14,7 @@ export default function Home() { const brandName = import.meta.env.VITE_BRAND_NAME; const brandLogoSrcUrl = import.meta.env.VITE_BRAND_LOGO_SRC_URL; const brandColor = import.meta.env.VITE_ACCENT_COLOR; + const brandFontFamily = import.meta.env.VITE_BRAND_FONT_FAMILY; const problemLink = import.meta.env.VITE_PROBLEM_LINK; const useGroupSearch = import.meta.env.VITE_USE_GROUP_SEARCH == "true"; const defaultSearchQueries: string[] = ( @@ -123,7 +124,7 @@ export default function Home() { { selector: ".random-trigger-location", mode: "chat", - } + }, ]} useGroupSearch={useGroupSearch} defaultAiQuestions={[ @@ -134,6 +135,7 @@ export default function Home() { brandLogoImgSrcUrl={brandLogoSrcUrl} brandName={brandName} brandColor={brandColor} + brandFontFamily={brandFontFamily} allowSwitchingModes={true} responsive={false} searchOptions={{ @@ -158,7 +160,7 @@ export default function Home() { {component > 0 ? (