npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngx-banana-ui

v5.0.0

Published

Welcome to ngx-banana-ui, an Angular library that provides a set of UI components to enhance your application's user interface. This library aims to simplify the development process by offering reusable and customizable components, including the banana-bu

Downloads

6

Readme

ngx-banana-ui

Welcome to ngx-banana-ui, an Angular library that provides a set of UI components to enhance your application's user interface. This library aims to simplify the development process by offering reusable and customizable components, including the banana-button component.

Installation

To use ngx-banana-ui in your Angular project, you need to follow these steps:

Install the library using npm:

npm install ngx-banana-ui

Import the NgxBananaUiModule in your application's module:

import { NgxBananaUiModule } from 'ngx-banana-ui';

@NgModule({
imports: [
// ...
NgxBananaUiModule
],
// ...
})
export class AppModule { }

Usage

Once you have installed and imported the NgxBananaUiModule, you can use the banana-button component in your templates.

<banana-button [label]="'Click me!'" [theme]="'summer'" (click)="handleClick()"></banana-button>

Banana Button

The banana-button component is a customizable button that can be used in various scenarios. It provides the following inputs and outputs:

Inputs

label (string): The label or text to be displayed on the button. (Default: '')

Theming

The banana-button component supports theming to customize its appearance. You can set the theme by using the theme input property. The available themes are:

  • summer: A summer-themed button.
  • spring: A spring-themed button. To customize the button's appearance based on the selected theme, you can use CSS variables. Here are the available CSS variables for each theme:

Summer Theme

banana-button[data-theme="summer"] {
--banana-btn-bg-color: rgb(222, 24, 114);
--banana-btn-color: rgb(143, 218, 43);
}

Spring Theme

banana-button[data-theme="spring"] {
--banana-btn-bg-color: rgb(199, 206, 57);
--banana-btn-color: rgb(179, 29, 225);
}

You can override these CSS variables to customize the background color and text color of the button in your project.

Outputs

click (EventEmitter): Event emitted when the button is clicked. Example:

<banana-button [label]="'Save'" [theme]="'summer'" (click)="saveData()"></banana-button>

In the example above, we set the label to 'Save', the theme to 'summer', and defined a saveData method to handle the button's click event.

Contribution

Contributions to ngx-banana-ui are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.

To contribute to the development of ngx-banana-ui, follow these steps:

Clone the repository:

git clone https://github.com/danywalls/ngx-banana

Install the dependencies:

cd ngx-banana-ui
npm install

Make your changes and run the development server:

ng serve

Submit a pull request with your changes.

Please ensure your code follows the existing coding style, includes appropriate tests, and is well-documented.

License ngx-banana-ui is released under the MIT License.