New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ad-library

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ad-library

[website](https://adessilly.github.io/ad-library/)

latest
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

AD Library

website

Simple angular library :

  • Button slide : show simple icon, on hover : show icon + text
  • Button switch : ios like button switch

Using ad-library in a project

  • Install the library : npm i ad-library
  • Import the module :
import { AdLibraryModule } from 'ad-library';
@NgModule({
imports: [ ..., AdLibraryModule ], ...
  • (if you want to use TabsComponent) Import the module :
import { AdTabsModule } from 'ad-library';
@NgModule({
imports: [ ..., AdTabsModule ], ...
  • (optional) import an icon library like fontawesome (npm i @fortawesome/fontawesome-free)
  • Play with the component :-)

<ad-button-slide icon="fas fa-trash" label="Delete this" background="red"></ad-button-slide>

Properties

Button Slide

  • ad-button-slide - (AdButtonSlideComponent) - button slide component object.

Parameters supported by this object:

  • icon: string; - icon class, eg. 'fa fa-trash'
  • label: string; - label displayed on hover
  • background: string = '#aaa'; - css background color
  • foreground: string = 'white'; - css font color
  • backgroundOver: string = null; - css background color when mouseOver, if no value given : backgroundOver = background
  • foregroundOver: string = null; - css font color when mouseOver, if no value given : foregroundOver = foreground
  • mini: boolean = false; - boolean to make the button tiny

Button Switch

  • ad-button-switch - (AdButtonSwitchComponent) - ios like button switch component object.

Parameters supported by this object:

  • theme: string = 'flip'; - choose the button switch theme, can be flip or switch
  • labelOn: string = ''; - for theme flip : label displayed when selected
  • labelOff: string = ''; - for theme flip : label displayed when not selected
  • iconOn: string = ''; - for theme flip : icon displayed when selected
  • iconOff: string = ''; - for theme flip : icon displayed when selected
  • ngModel: value to bind

Example

Tabs

  • ad-tabs-component - (AdTabsComponent) - responsive tabs.

Test library

clone this project and run 'npm i && npm start'

License

MIT License

Author

Adrien Dessilly

FAQs

Package last updated on 06 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts