We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, it would be nice if there was a global suffix support.
This is how I imagine it could work API-wise:
Root level, producing MyApp.
MyApp
<DocumentTitle title="null" suffix="MyApp" separator=" | "> ... </DocumentTitle>
Inside a specific page, producing Index | MyApp.
Index | MyApp
<DocumentTitle title="null" suffix="MyApp" separator=" | "> <DocumentTitle title="Index">...<DocumentTitle> </DocumentTitle>
There could be also custom format function for those who need more power:
<DocumentTitle title="null" format={(value) => value ? value+' | MyApp' : 'MyApp'}> ... </DocumentTitle>
The text was updated successfully, but these errors were encountered:
A similar proposal was mentioned in #6 with a potential solution (wrapping the component)
Sorry, something went wrong.
@hakunin I had same use-case so I've created similar library that supports that API: react-titled
It was hard to add support for it here since react-document-title has fundamentally different implementation (not using context).
No branches or pull requests
Hi, it would be nice if there was a global suffix support.
This is how I imagine it could work API-wise:
Root level, producing
MyApp
.Inside a specific page, producing
Index | MyApp
.There could be also custom format function for those who need more power:
The text was updated successfully, but these errors were encountered: