1.0.1 • Published 4 years ago
@smashing/title v1.0.1
Title
Manage page title with React component.
yarn add @smashing/title
Change page title
This will set page title to About
. If app title is configured, it will be set to About - App Title
import {Title} from "@smashing/title"
export const AboutPage = () => (
<div>
<Title>About</Title>
</div>
)
Setup app title and separator
import {TitleContext} from "@smashing/title"
export const App = () => (
<TitleContext.Provider
value={{
title: 'My App Name',
separator: ' - '
}}
>
{/* ... */}
</TitleContext.Provider>
)
1.0.1
4 years ago
1.0.0
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.11
5 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.1
5 years ago
0.1.1-alpha.6
5 years ago
0.1.1-alpha.2
5 years ago