Algolia placeholder does not work docusaurus.config.js file. #10774
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
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: