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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@devkitify/angular-ui-kit

v2.0.21

Published

An Angular UI Kit library with reusable components and directives built on Angular Material.

Readme

Angular UI Kit

Welcome to the Angular UI Kit! This project provides reusable Angular components to accelerate your development workflow.

Version Compatibility

| Angular Version | Package Version | | --------------- | ---------------- | | Angular 19 | v1.0.x | | Angular 21 | v2.0.x and above |

Features

  • Prebuilt UI components (Table, Buttons, etc.)
  • Angular Material integration
  • Customizable themes
  • Easy to use and extend

Quick Start

  1. Install the package:
npm install @devkitify/angular-ui-kit
  1. Import a component in your module:
import { Table, TableModel } from '@devkitify/angular-ui-kit';

// Use in your component
  1. Configure and use:
const tableConfig = signal<TableModel>(new TableModel());
// Configure your component
  1. Add Material Theme (optional):
// In your styles.scss
@import '@angular/material/prebuilt-themes/indigo-pink.css';

Folder Structure

  • Components
  • Services
    • BaseService - HTTP client wrapper dengan multi-project support
  • Shared
    • Model - Type definitions and models
    • Pipes
    • Utils - Helper utility functions
    • Directives - Custom Angular directives

Component Usage Examples

Button

Basic button component with multiple appearances and variants:

import { Component, signal } from '@angular/core';
import { Button, ButtonModel } from '@devkitify/angular-ui-kit';

@Component({
  selector: 'app-button-example',
  standalone: true,
  imports: [Button],
  template: `
    <lib-button [config]="buttonConfig()"></lib-button>
  `
})
export class ButtonExampleComponent {
  isLoading = signal(false);
  
  buttonConfig = signal<ButtonModel>({
    text: 'Click Me',
    appearance: 'raised',
    color: 'primary',
    onClick: () => this.handleClick()
  });

  handleClick() {
    this.isLoading.set(true);
    // Handle button click
  }
}

ButtonModel Options:

  • text: Button label text
  • appearance: 'flat' | 'raised' | 'stroked' | 'icon' | 'fab'
  • color: 'primary' | 'accent' | 'warn'
  • icon: Material icon name
  • disabled: Signal for disabled state
  • loading: Signal for loading state
  • onClick: Callback function

Table

Advanced data table with sorting, pagination, and custom formatting:

import { Component, signal } from '@angular/core';
import { Table, TableModel } from '@devkitify/angular-ui-kit';

@Component({
  selector: 'app-table-example',
  standalone: true,
  imports: [Table],
  template: `
    <lib-table [config]="tableConfig()">
      <ng-template #customTemplate let-data="data" let-key="key">
        <strong>{{ data[key] }}</strong>
      </ng-template>
    </lib-table>
  `
})
export class TableExampleComponent {
  tableConfig = signal<TableModel>(new TableModel());

  ngOnInit() {
    const config = this.tableConfig();
    
    // Define columns
    config.columns = [
      { key: 'id', label: 'ID', sortable: true },
      { key: 'name', label: 'Name', sortable: true },
      { key: 'email', label: 'Email', sortable: true },
      { key: 'createdDate', label: 'Created', sortable: true },
      { key: 'amount', label: 'Amount', sortable: false }
    ];

    // Configure data types for formatting
    config.dataType = {
      createdDate: { type: 'date', format: 'short' },
      amount: { 
        type: 'currency', 
        currency: 'USD',
        locale: 'en-US',
        minimumFractionDigits: 2
      },
      name: { type: 'custom' }
    };

    // Set data
    config.dataSource = [
      { id: 1, name: 'John', email: '[email protected]', createdDate: new Date(), amount: 1500 },
      { id: 2, name: 'Jane', email: '[email protected]', createdDate: new Date(), amount: 2500 }
    ];

    config.dataTotal = config.dataSource.length;
    config.pageSize = 10;
    config.isServerSide.set(false);
    config.isPagination.set(true);
    config.isSorter.set(true);

    config.generateDataType();
  }
}

TableModel Features:

  • columns: Column definitions (key, label, sortable)
  • dataSource: Array of data objects
  • dataType: Configure formatting (date, currency, custom)
  • isServerSide(): Signal for server-side data handling
  • isPagination(): Enable/disable pagination
  • isSorter(): Enable/disable sorting
  • Nested property support: dataType: 'user.address.city'

Checkbox

Multi-select checkbox component with select-all functionality:

import { Component } from '@angular/core';
import { Checkbox, FormlyField } from '@devkitify/angular-ui-kit';
import { signal } from '@angular/core';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-checkbox-example',
  standalone: true,
  imports: [Checkbox],
  template: `
    <lib-checkbox [field]="checkboxField()"></lib-checkbox>
  `
})
export class CheckboxExampleComponent {
  checkboxField = signal<FormlyField>({
    control: () => new FormControl([]),
    options: [
      { label: 'Option 1', value: 'opt1' },
      { label: 'Option 2', value: 'opt2' },
      { label: 'Option 3', value: 'opt3' }
    ],
    onChange: (event) => console.log('Selected:', event)
  });
}

Dropdown

Select dropdown with optional infinite scroll and custom options:

import { Component, signal } from '@angular/core';
import { Dropdown, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-dropdown-example',
  standalone: true,
  imports: [Dropdown],
  template: `
    <lib-dropdown [field]="dropdownField()"></lib-dropdown>
  `
})
export class DropdownExampleComponent {
  dropdownField = signal<FormlyField>({
    control: () => new FormControl(null),
    options: [
      { label: 'Select an option', value: null, disabled: true },
      { label: 'Option 1', value: 'opt1' },
      { label: 'Option 2', value: 'opt2' }
    ],
    config: {
      dropdown: {
        infiniteScroll: {
          enabled: true,
          threshold: '15%',
          debounce: 150
        }
      }
    },
    onChange: (event) => console.log('Selected:', event)
  });
}

Textbox

Text input component with Material design support:

import { Component, signal } from '@angular/core';
import { Textbox, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-textbox-example',
  standalone: true,
  imports: [Textbox],
  template: `
    <lib-textbox [field]="textboxField()"></lib-textbox>
  `
})
export class TextboxExampleComponent {
  textboxField = signal<FormlyField>({
    label: 'Email Address',
    placeholder: 'Enter your email',
    control: () => new FormControl(''),
    hint: 'We will never share your email',
    onChange: (event) => console.log('Value:', event)
  });
}

Textbox Password with Show/Hide Icon

Password input with toggle visibility:

import { Component, signal } from '@angular/core';
import { Textbox, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { NgTemplateOutlet } from '@angular/common';
import { TemplateRef, ViewChild } from '@angular/core';

@Component({
  selector: 'app-password-example',
  standalone: true,
  imports: [Textbox, MatIconModule, MatButtonModule, NgTemplateOutlet],
  template: `
    <lib-textbox 
      [field]="passwordField()"
      [matSuffixRef]="suffixTemplate">
    </lib-textbox>

    <ng-template #suffixTemplate>
      <button 
        type="button"
        mat-icon-button 
        (click)="togglePasswordVisibility()"
        [attr.aria-label]="isPasswordVisible() ? 'Hide password' : 'Show password'">
        <mat-icon>{{ isPasswordVisible() ? 'visibility' : 'visibility_off' }}</mat-icon>
      </button>
    </ng-template>
  `
})
export class PasswordExampleComponent {
  isPasswordVisible = signal(false);
  
  passwordField = signal<FormlyField>({
    label: 'Password',
    placeholder: 'Enter your password',
    control: () => new FormControl(''),
    config: {
      textboxType: 'password',
      appearance: 'outline'
    },
    onChange: (event) => console.log('Password changed')
  });

  togglePasswordVisibility() {
    this.isPasswordVisible.update(v => !v);
    
    // Update password field type dynamically
    const field = this.passwordField();
    if (field.config) {
      field.config.textboxType = this.isPasswordVisible() ? 'text' : 'password';
    }
  }
}

Features:

  • Toggle between password and text input types
  • Material Design icon button
  • Accessibility attributes (aria-label)
  • Custom suffix template with icon
  • Responsive visibility state

Textbox Currency

Specialized input for currency values with formatting:

import { Component, signal } from '@angular/core';
import { TextboxCurrency, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-currency-example',
  standalone: true,
  imports: [TextboxCurrency],
  template: `
    <lib-textbox-currency [field]="currencyField()"></lib-textbox-currency>
  `
})
export class CurrencyExampleComponent {
  currencyField = signal<FormlyField>({
    label: 'Amount',
    control: () => new FormControl(0),
    config: {
      currency: 'USD',
      locale: 'en-US'
    }
  });
}

Datepicker

Date selection component:

import { Component, signal } from '@angular/core';
import { Datepicker, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-datepicker-example',
  standalone: true,
  imports: [Datepicker],
  template: `
    <lib-datepicker [field]="dateField()"></lib-datepicker>
  `
})
export class DatepickerExampleComponent {
  dateField = signal<FormlyField>({
    label: 'Select Date',
    control: () => new FormControl(new Date()),
    onChange: (event) => console.log('Date selected:', event)
  });
}

Radio Button

Single-select radio group component:

import { Component, signal } from '@angular/core';
import { RadioButton, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-radio-example',
  standalone: true,
  imports: [RadioButton],
  template: `
    <lib-radio-button [field]="radioField()"></lib-radio-button>
  `
})
export class RadioExampleComponent {
  radioField = signal<FormlyField>({
    label: 'Choose one',
    control: () => new FormControl('option1'),
    options: [
      { label: 'Option 1', value: 'option1' },
      { label: 'Option 2', value: 'option2' }
    ]
  });
}

Textarea

Multi-line text input:

import { Component, signal } from '@angular/core';
import { Textarea, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-textarea-example',
  standalone: true,
  imports: [Textarea],
  template: `
    <lib-textarea [field]="textareaField()"></lib-textarea>
  `
})
export class TextareaExampleComponent {
  textareaField = signal<FormlyField>({
    label: 'Comments',
    placeholder: 'Enter your feedback',
    control: () => new FormControl('')
  });
}

Slide Toggle

Toggle switch component:

import { Component, signal } from '@angular/core';
import { SlideToggle, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-toggle-example',
  standalone: true,
  imports: [SlideToggle],
  template: `
    <lib-slide-toggle [field]="toggleField()"></lib-slide-toggle>
  `
})
export class SlideToggleExampleComponent {
  toggleField = signal<FormlyField>({
    label: 'Enable Notifications',
    control: () => new FormControl(false),
    onChange: (event) => console.log('Toggled:', event)
  });
}

Chip

Chip/tag component for displaying small pieces of information:

import { Component, signal } from '@angular/core';
import { Chip, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-chip-example',
  standalone: true,
  imports: [Chip],
  template: `
    <lib-chip [field]="chipField()"></lib-chip>
  `
})
export class ChipExampleComponent {
  chipField = signal<FormlyField>({
    control: () => new FormControl(['tag1', 'tag2']),
    options: [
      { label: 'Angular', value: 'tag1' },
      { label: 'TypeScript', value: 'tag2' },
      { label: 'Material', value: 'tag3' }
    ]
  });
}

Autocomplete

Search and autocomplete input:

import { Component, signal } from '@angular/core';
import { Autocomplete, FormlyField } from '@devkitify/angular-ui-kit';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-autocomplete-example',
  standalone: true,
  imports: [Autocomplete],
  template: `
    <lib-autocomplete [field]="autocompleteField()"></lib-autocomplete>
  `
})
export class AutocompleteExampleComponent {
  autocompleteField = signal<FormlyField>({
    label: 'Search',
    control: () => new FormControl(''),
    options: [
      { label: 'Apple', value: 'apple' },
      { label: 'Banana', value: 'banana' },
      { label: 'Cherry', value: 'cherry' }
    ]
  });
}

Resources


Feel free to contribute or open issues to help improve this library!