@blackblock/react-anchor-heading
v1.1.0
Published
A React heading component with id that automatically changes with textContent for anchoring.
Downloads
2
Maintainers
Readme
React anchor heading
A React heading component with id that automatically changes with textContent for anchoring.
import Heading from '@blackblock/react-anchor-heading'
//Input
<Heading as={'h2'}>Hello world</Heading>
//Output
<h2 id="hello-world">Hello world</h2>
Installation
npm i @blackblock/react-anchor-heading