You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that you can already provide a custom label by using our i18n support: we consider those labels are translatable i18n english labels, so translating english labels will permit to customize the labels. You can also swizzle @theme/SearchTranslations.
Will be fixed in #10799 since I agree using our i18n system for customizing such label is a bit awkward and unintuitive if your site is not localized.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
According to https://docusaurus.io/docs/search#customizing-the-algolia-search-behavior
We can use
placeholder
type: string | default: "Search docs" | optional
The placeholder of the input of the DocSearch pop-up modal.
... this does not work and we get a TS error
theme-search-algolia.d.ts(12, 5): The expected type comes from property 'algolia' which is declared here on type 'ThemeConfig'
Reproducible demo
No response
Steps to reproduce
Add
placeholder
to Algolia field in Docusaurus configExpected behavior
Search box modal would use my value instead of the default "Search docs"
Actual behavior
TS error
theme-search-algolia.d.ts(12, 5): The expected type comes from property 'algolia' which is declared here on type 'ThemeConfig'
Your environment
Self-service
The text was updated successfully, but these errors were encountered: