1.0.1 • Published 5 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
5 years ago
1.0.0
5 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.11
6 years ago
0.2.10
6 years ago
0.2.9
6 years ago
0.2.8
6 years ago
0.2.7
6 years ago
0.2.6
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.1-alpha.6
6 years ago
0.1.1-alpha.2
6 years ago