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

illyria-ui-button

v1.4.1

Published

A collection of reusable button components for Angular applications.

Downloads

30

Readme

Button

The ui-button component provides a customizable button element with various styles and sizes. It supports different button types such as basic, raised, stroked, flat, icon, FAB (Floating Action Button), mini FAB, extended FAB, button toggle, toggle, disabled, and link. You can also customize the button size (small, medium, or large) and the color (primary, accent, or warn).

Features

  • Display customizable notification bars with various styles when you click the button (success, error, warning, info)
  • Set the position, duration, and action button for the notification bars
  • Handle events such as onShow, onClose, and onInteract
  • Easy integration into your Angular projects

Table of Contents

Installation

To use this custom button component library in your Angular project, follow these steps:

  1. Install the library via npm or yarn:

    npm install illyria-ui-button
    # or
    yarn add illyria-ui-button

Import the ButtonModule into your Angular module:

import {NgModule} from '@angular/core';
import {ButtonModule} from 'illyria-ui-button';

@NgModule({
  declarations: [/* Your components */],
  imports: [ButtonModule],
  /* ... other module configurations ... */
})
export class YourModule {
}

Use the component in your templates:


<ui-button uiBtn="mat-raised-button">Raised Button</ui-button>
<ui-button uiBtn="mat-stroked-button">Stroked Button</ui-button>
<!-- Add more buttons with different variants as needed -->

Usage

Button Variants

The library provides the following button variants:

  • mat-button: Rectangular text button with no elevation.
  • mat-raised-button: Rectangular contained button with elevation.
  • mat-stroked-button: Rectangular outlined button with no elevation.
  • mat-flat-button: Rectangular contained button with no elevation.
  • mat-icon-button: Circular button with a transparent background, meant to contain an icon.
  • mat-fab: Circular button with elevation, defaults to the theme's accent color.
  • mat-mini-fab: Same as mat-fab but smaller.

You can customize the button variants by setting the uiBtn input property to the desired variant name.

Customization

The library is highly customizable, and you can extend it to meet your specific design needs. You can modify the HTML templates and SCSS styles of each button component (<ui-button>, <ui-raised-button>, etc.) to match your design requirements.

Styling

You can apply custom styles to your buttons by modifying the SCSS styles in your project. The library provides a basic set of styles to get you started, but you can adjust colors, dimensions, and other styles to match your project's design guidelines.

Contributing

We welcome contributions from the community! If you have suggestions, bug reports, or would like to contribute code, please open an issue or create a pull request on the GitHub repository.

License

This project is licensed under the MIT License.


Feel free to copy and paste this Markdown text into your README.md file, and you can further enhance it with additional details or formatting as needed.