auto-hide-toolbar
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

AutoHideToolbar

Build and Deploy

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

auto-hiding-toolbar-demo

Install

To install this lib in your angular project

ng add auto-hide-toolbar

Usage

your.module.ts

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

your.component.html

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

Example

<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. [Project scaffolded with Angular 10.0.9]

Licence

MIT © 2020 Vajahath Ahmed

/auto-hide-toolbar/

    Package Sidebar

    Install

    npm i auto-hide-toolbar

    Weekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    41.6 kB

    Total Files

    15

    Last publish

    Collaborators

    • vaju