Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit b473e07

Browse files
committed
Removed demos folder
1 parent e8846fb commit b473e07

File tree

16 files changed

+49
-16607
lines changed

16 files changed

+49
-16607
lines changed

.env.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
GITHUB_TOKEN=
2-
LIBRARIES_IO_KEY=
1+
GITHUB_TOKEN=

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/), and this
77
**Table of Contents**
88

99
- [[Unreleased]](#unreleased)
10-
- [[v1.3.2] - (2020-12-1)](#v132---2020-12-1)
10+
- [[v1.3.2] - (2020-12-02)](#v132---2020-12-02)
1111
- [[v1.3.1] - (2020-11-30)](#v131---2020-11-30)
1212
- [Added](#added)
1313
- [[v1.3.0] - (2020-11-27)](#v130---2020-11-27)
@@ -36,7 +36,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/), and this
3636

3737
---
3838

39-
## [v1.3.2] - (2020-12-1)
39+
## [v1.3.2] - (2020-12-02)
4040

4141
---
4242

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ _Table Of Contents_
2525
- [requiredPathname](#requiredpathname)
2626
- [scrollFunc](#scrollfunc)
2727
- [HashScroll](#hashscroll)
28+
- [Summary](#summary)
29+
- [Demo](#demo)
2830
- [Props](#props)
2931
- [Example](#example)
3032
- [MultiHash](#multihash)
33+
- [Summary](#summary-1)
34+
- [Demo](#demo-1)
3135
- [Props](#props-1)
3236
- [Example](#example-1)
3337
- [ChildrenHash](#childrenhash)
38+
- [Summary](#summary-2)
39+
- [Demo](#demo-2)
3440
- [Props](#props-2)
3541
- [Example](#example-2)
3642
- [Contributing](#contributing)
@@ -80,9 +86,9 @@ There are a lot of hash scrolling React libraries out there, so why should you p
8086

8187
## Website
8288

83-
<a href="https://react-hash-scroll.web.app/"><img src="https://img.shields.io/website?url=https%3A%2F%2Freact-hash-scroll.web.app%2F" alt="Website"></a>
89+
![Website](https://img.shields.io/website?url=https%3A%2F%2Freact-hash-scroll.web.app%2F)
8490

85-
View the [website](https://react-hash-scroll.web.app/). It compiles all the information and demos on this library in one easy-to-access place.
91+
The [website](https://react-hash-scroll.web.app/) compiles all the information and demos on this library in one easy-to-access place.
8692

8793
---
8894

@@ -137,8 +143,14 @@ Props that are used by multiple components
137143

138144
### HashScroll
139145

146+
#### Summary
147+
140148
Scrolls to child element when the specified hash is present in the url
141149

150+
#### Demo
151+
152+
[![View Hash Scroll Demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-hash-scroll-demos-ge3b4?initialpath=hash-scroll&module=/src/Demos/HashScrollDemo.tsx)
153+
142154
#### Props
143155

144156
`hash`
@@ -198,8 +210,14 @@ const HashChild = React.forwardRef((props, ref)) => ( // Must forward refs for c
198210

199211
### MultiHash
200212

213+
#### Summary
214+
201215
Component that pairs hashes with refs and scrolls to a corresponding ref when one of the hashes is present in the url
202216

217+
#### Demo
218+
219+
[![View Multi Hash Demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-hash-scroll-demos-ge3b4?initialpath=multi-hash&module=/src/Demos/MultiHashDemo.tsx)
220+
203221
#### Props
204222

205223
`hashes`
@@ -261,8 +279,14 @@ const App = () => {
261279

262280
### ChildrenHash
263281

282+
#### Summary
283+
264284
Scrolls to corresponding child element when one of the hashes is present in the url
265285

286+
#### Demo
287+
288+
[![View Children Hash Demo](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/react-hash-scroll-demos-ge3b4?initialpath=children-hash&module=/src/Demos/ChildrenHashDemo.tsx)
289+
266290
#### Props
267291

268292
`hashes`

demos/.eslintcache

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)