-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd6debf
commit bc2366d
Showing
23 changed files
with
246 additions
and
64 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# `<Hx>uberschrift 🧢</Hx>` | ||
|
||
**Zero-dependency magic heading levels for React and Vue.js** | ||
|
||
--- | ||
|
||
[![npm version badge](https://img.shields.io/npm/v/uberschrift?style=flat-square)](https://npmjs.com/package/uberschrift)<br /> | ||
[![npm version badge](https://img.shields.io/npm/v/vueberschrift?style=flat-square)](https://npmjs.com/package/vueberschrift)<br /> | ||
[![Issue badge](https://img.shields.io/github/issues/peerigon/uberschrift?style=flat-square)](https://github.com/peerigon/uberschrift/issues)<br /> | ||
[![CI badge](https://github.com/peerigon/uberschrift/actions/workflows/ci.yml/badge.svg)](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"; | ||
|
||
<Hx>Outside of the top level: this will be an h1</Hx> | ||
|
||
<HxBoundary> | ||
<Hx>Within the top level: this will be an h2</Hx> | ||
|
||
<HxBoundary> | ||
<Hx>Within the 2nd level: this will be an h3</Hx> | ||
|
||
<HxBoundary> | ||
<Hx>Within the 3rd level: this will be an h4</Hx> | ||
</HxBoundary> | ||
|
||
<Hx>Again within the 2nd level: this will be an h3</Hx> | ||
</HxBoundary> | ||
</HxBoundary> | ||
``` | ||
|
||
renders as: | ||
|
||
```html | ||
<h1>Outside of the top level: this will be an h1</h1> | ||
<h2>Within the top level: this will be an h2</h2> | ||
<h3>Within the 2nd level: this will be an h3</h3> | ||
<h4>Within the 3rd level: this will be an h4</h4> | ||
<h3>Again within the 2nd level: this will be an h3</h3> | ||
``` | ||
|
||
### 🌲 Vue.js | ||
|
||
```sh | ||
npm install vueberschrift | ||
``` | ||
|
||
`App.vue`: | ||
|
||
```html | ||
<script setup lang="ts"> | ||
import { Hx, HxBoundary } from "vueberschrift"; | ||
</script> | ||
|
||
<template> | ||
<Hx>Outside of the top level: this will be an h1</Hx> | ||
<HxBoundary> | ||
<Hx>Within the top level: this will be an h2</Hx> | ||
|
||
<HxBoundary> | ||
<Hx>Within the 2nd level: this will be an h3</Hx> | ||
</HxBoundary> | ||
</HxBoundary> | ||
</template> | ||
``` | ||
|
||
--- | ||
|
||
## Sponsors | ||
|
||
[<img src="https://assets.peerigon.com/peerigon/logo/peerigon-logo-flat-spinat.png" width="150" />](https://peerigon.com) | ||
|
||
--- | ||
|
||
## 👩💻 Development | ||
|
||
```sh | ||
npm install | ||
npx turbo dev | ||
npx turbo test | ||
npx turbo build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# @uberschrift/docs | ||
|
||
## 2.0.0 | ||
|
||
Include vueberschrift | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# nextjs-example | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @uberschrift/vite-chakra-ui-example | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @uberschrift/vite-example | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @uberschrift/vite-mui-example | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# vue-vite-example | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# @uberschrift/eslint-config | ||
|
||
## 2.0.0 | ||
|
||
Include vueberschrift | ||
|
||
## 1.0.0 | ||
|
||
Initial release |
Oops, something went wrong.