# auto-hide-toolbar

> Dead simple angular auto hiding toolbar

Latest version **2.0.0** (published 2021-05-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install auto-hide-toolbar
pnpm add auto-hide-toolbar
yarn add auto-hide-toolbar
bun add auto-hide-toolbar
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-05-28 |
| First published | 2020-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 40.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vajahath Ahmed |
| Maintainers | vaju |
| Keywords | angular, ux, material |

## Links

- npm: https://www.npmjs.com/package/auto-hide-toolbar
- Repository: https://github.com/vajahath/auto-hide-toolbar
- Homepage: https://github.com/vajahath/auto-hide-toolbar#readme
- Issues: https://github.com/vajahath/auto-hide-toolbar/issues
- npm.io page: https://npm.io/package/auto-hide-toolbar

## Dependencies (1)

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

## Alternatives

- [@reckona/mreact-store](https://npm.io/package/@reckona/mreact-store.md) — 976 weekly downloads
- [regular-state](https://npm.io/package/regular-state.md) — 410 weekly downloads
- [@pacote/flux-actions](https://npm.io/package/@pacote/flux-actions.md) — 65 weekly downloads
- [@pilotlab/lux-debug](https://npm.io/package/@pilotlab/lux-debug.md) — 39 weekly downloads
- [vue-persist-state](https://npm.io/package/vue-persist-state.md) — 19 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-05-28
- 1.0.1 — 2020-08-17
- 1.0.0 — 2020-08-17

## README

# AutoHideToolbar

![Build and Deploy](https://github.com/vajahath/auto-hide-toolbar/workflows/Build%20and%20Deploy/badge.svg)

Angular auto hiding header component (For angular 12, optimized, minimal (less than 3kb), zero dependencies).

![auto-hiding-toolbar-demo](https://github.com/vajahath/auto-hide-toolbar/raw/master/projects/auto-hide-toolbar/auto-hide-toolbar.gif)

## Install

To install this lib in your angular project

```bash
ng add auto-hide-toolbar
```

## Usage

`your.module.ts`
```ts
import { AutoHideToolbarModule } from 'auto-hide-toolbar';
// ...
@NgModule({
  ...
  imports: [..., AutoHideToolbarModule],
})
export class YourModule {}
```

`your.component.html`
```html
<!-- page top -->
<lib-auto-hide-toolbar shadowPadding="9">
  <!-- your toolbar html goes here -->
</lib-auto-hide-toolbar>
```

### Example
```html
<lib-auto-hide-toolbar shadowPadding="9">
  <div style="background-color: purple; padding: 5px;">
    <h1 style="margin: 0px; color: wheat;">Demo Toolbar</h1>
  </div>
</lib-auto-hide-toolbar>
```

### Attribute `shadowPadding`
Adds basic padding below the falling header component - to preserve shadows if any. Unit in pixels.
</br>
</br>
[Project scaffolded with Angular 10.0.9]

## Licence
MIT &copy; 2020 [Vajahath Ahmed](https://twitter.com/vajahath7)

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