https://github.com/peerigon/uberschrift
Magic heading levels for React
https://github.com/peerigon/uberschrift
Last synced: 11 months ago
JSON representation
Magic heading levels for React
- Host: GitHub
- URL: https://github.com/peerigon/uberschrift
- Owner: peerigon
- License: unlicense
- Created: 2022-12-01T20:16:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T07:53:05.000Z (over 1 year ago)
- Last Synced: 2025-08-09T18:04:53.852Z (11 months ago)
- Language: TypeScript
- Homepage: https://uberschrift.peerigon.io/
- Size: 457 KB
- Stars: 3
- Watchers: 14
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `uberschrift ๐งข`
**Zero-dependency magic heading levels for React and Vue.js**
---
| | |
| ----------- | ------------------------------------------------------------ |
| uberschrift | [](https://npmjs.com/package/uberschrift) |
| vueberschrift | [](https://npmjs.com/package/vueberschrift) |
| Issues | [](https://github.com/peerigon/uberschrift/issues) |
| CI status | [](https://github.com/peerigon/uberschrift/actions/workflows/pull_request.yml) |
---
## [๐ Full Documentation](https://uberschrift.peerigon.io)
## ๐ ๏ธ Usage
### โ๏ธ React
```sh
npm install uberschrift
```
`page.tsx`:
```tsx
import { Hx, HxBoundary } from "uberschrift";
Outside of the top level: this will be an h1
Within the top level: this will be an h2
Within the 2nd level: this will be an h3
Within the 3rd level: this will be an h4
Again within the 2nd level: this will be an h3
```
renders as:
```html
Outside of the top level: this will be an h1
Within the top level: this will be an h2
Within the 2nd level: this will be an h3
Within the 3rd level: this will be an h4
Again within the 2nd level: this will be an h3
```
### ๐ฒ Vue.js
```sh
npm install vueberschrift
```
`App.vue`:
```html
import { Hx, HxBoundary } from "vueberschrift";
Outside of the top level: this will be an h1
Within the top level: this will be an h2
Within the 2nd level: this will be an h3
```
---
## Sponsors
[
](https://peerigon.com)
---
## ๐ฉโ๐ป Development
```sh
npm install
npx turbo dev
npx turbo test
npx turbo build
```