# ng9-scroll-top

> ng9-scoll-top Library is made using Angular CLI 9.1.7

Latest version **1.2.4** (published 2020-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng9-scroll-top
pnpm add ng9-scroll-top
yarn add ng9-scroll-top
bun add ng9-scroll-top
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2020-05-28 |
| First published | 2020-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 156.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gauri K Kumar |
| Maintainers | gaurikumar |
| Keywords | angular, angular 9, scroll to top, go to top, angular scroll top |

## Links

- npm: https://www.npmjs.com/package/ng9-scroll-top
- Repository: https://github.com/gauriz/ng9-scroll-top
- Homepage: https://github.com/gauriz/ng9-scroll-top#readme
- Issues: https://github.com/gauriz/ng9-scroll-top/issues
- npm.io page: https://npm.io/package/ng9-scroll-top

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.10.0

## Recent versions

- 1.2.4 (latest) — 2020-05-28
- 1.2.3 — 2020-05-28
- 1.2.2 — 2020-05-28
- 1.2.1 — 2020-05-28
- 1.2.0 — 2020-05-28
- 1.1.0 — 2020-05-26
- 1.0.3 — 2020-05-25
- 1.0.2 — 2020-05-25
- 1.0.1 — 2020-05-25
- 1.0.0 — 2020-05-25

## README

# 'Scroll To Top' Library

# ng9-scroll-top

ng9-scoll-top Library is made using Angular CLI 9.1.7


# Demo (example)

 Watch this [demo page](https://ng9-scroll-top.stackblitz.io/)
 
Or play with it live on [stackblitz.com/edit/ng9-scroll-top](https://stackblitz.com/edit/ng9-scroll-top)


## Installation

> ng add ng9-scroll-top

```javascript

import  {  ScrollToTopModule  }  from  'ng9-scroll-top';
............................................................................

@NgModule({
imports:  [ ScrollToTopModule, ... ],
providers:  [... ],
bootstrap:  [AppComponent]
})
export  class  AppModule  {  }

```

## Usage

### [](https://www.npmjs.com/package/ng9-scroll-top#component-way)Component way

In **component.html**  you just need to add the selector of the button wherever needed.

<ng9-scroll-top></ng9-scroll-top>


## Options

OPTION|TYPE|DEFAULT| DESCRIPTION| UNIT|
|-|-|-|-|-|
|backgroundColor|`string`|purple| Background Color|
|color |`string` |white| Color|
|height |`number` |50| Height |px|
|width |`number` |50| Width |px|
|lineHeight |`number` |55| Minimal height of line boxes within the element|px|
|fontSize |`number` |30| Font size of the icon/character given as text|px|
|borderRadius |`string` |20%| Border Radius in % (0 : Square, 50% : circle)|
|right |`number` |50| Px value from the right-most border|px|
|bottom|`number` |50| Px value from the bottom-most border|px|
|text |`string` |↟| Will be taken to display if no svgIcon link is specified|
|svgIcon|`string` |null| Icon link to be displayed|
|type|`string` |pulse| Type of hovered button|
|breakpoints|`string[]` |null| Breakpoints/ Fragment ID's to be navigated to|


*If no breakpoints are provided, then he scroll will be set to the top of the document.*

---
_Source: https://npm.io/package/ng9-scroll-top · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
