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

x-gen-ui

v0.0.5

Published

Reusable Angular Material UI components library.

Readme

x-gen-ui

This library was generated with Nx.

Running unit tests

Run nx test x-gen-ui to execute the unit tests.

XGenUI

Reusable Angular Material UI components library for Angular 20+ projects.

Features

  • Standalone, generic, and reusable Angular Material components
  • Easy integration into any Angular project
  • Includes input, date-picker, and single select components (more coming soon)

Installation

From yarn (public)

yarn add x-gen-ui

Peer dependencies: Make sure your project uses Angular 20+ and Angular Material 20+.

Usage

1. Import Angular Material Modules

Ensure your app imports BrowserAnimationsModule and has Angular Material set up.

2. Import and Use Components

Input Component

import { XGenUIInput } from 'x-gen-ui';
<x-gen-ui-input
  [type]="'text'"
  [label]="'USERNAME'"
  [placeholder]="'ENTER_YOUR_USERNAME'"
  [control]="usernameControl"
  [errorMessages]="{ required: 'USERNAME_REQUIRED', minlength: 'USERNAME_TOO_SHORT' }"
  [iconName]="'person'"
  [hint]="'YOUR_UNIQUE_USERNAME'"
  [isReadOnly]="false"
  (actionButton)="handleAction($event)"
  [actionName]="'search'"
  [actionButtonIconName]="'search'"
></x-gen-ui-input>

Date Picker Component

import { XGenUIInput } from 'x-gen-ui';
<x-gen-ui-select
  [label]="'Select Fruit'"
  [placeholder]="'Choose one'"
  [control]="fruitControl"
  [options]="['Apple', 'Banana']"
  [multiple]="true"
  [displayKey]="'name'"
  [valueKey]="'id'"
  [errorMessages]="{ required: 'Selection required' }"
></x-gen-ui-select>

Single Select Component

import { XGenUISelect } from 'x-gen-ui';

fruitControl = new FormControl<[]>([], [Validators.required]);

<x-gen-ui-table
  [pageTitle]="'My Table'"
  [columns]="columns"
  [dataset]="items"
  [enableCheckBoxSelection]="true"
  [rowActions]="[{name: 'edit', icon: 'edit'}]"
  [displayActionBar]="true"
  [enableStaticSearch]="true"
  [control]="selectedControl"
  (action)="handleTableAction($event)"
></x-gen-ui-table>
selectedControl = new FormControl<any[]>([]) as FormControl<any[]>;

Radio Component

import { XGenUIRadio } from 'x-gen-ui';

optionControl = new FormControl(null, Validators.required);
<x-gen-ui-radio
  [label]="'Select Option'"
  [control]="optionControl"
  [values]="[{id: 1, name: 'Option 1'}, {id: 2, name: 'Option 2', isDefault: true}]"
></x-gen-ui-radio>

3. Standalone Usage

You can use these components in standalone components or modules. Just add them to the imports array of your component.

API Reference

XGenUIInput

| Input | Type | Description | |-------------- |----------|-----------------------------------| | label | string | Field label | | placeholder | string | Placeholder text | | value | string | Input value (two-way binding) | | type | string | Input type (text, password, etc.) | | disabled | boolean | Disable the input | | maxlength | number | Max length | | minlength | number | Min length | | autocomplete | string | Autocomplete attribute | | hint | string | Hint text |

XGenUIDatePicker

| Input | Type | Description | |-------------- |------------|-----------------------------------| | label | string | Field label | | placeholder | string | Placeholder text | | value | Date | null | Date value (two-way binding) | | disabled | boolean | Disable the picker | | autocomplete | string | Autocomplete attribute | | hint | string | Hint text |

XGenUISingleSelect

| Input | Type | Description | |-------------- |----------------------------|-----------------------------------| | label | string | Field label | | placeholder | string | Placeholder text | | value | any | Selected value (two-way binding) | | options | XGenUISelectOption[] | Options for the select | | disabled | boolean | Disable the select |

XGenUITable

| Input | Type | Description | |-------------- |----------------------------|-----------------------------------| | label | string | Field label | | placeholder | string | Placeholder text | | value | any | Selected value (two-way binding) | | options | XGenUISelectOption[] | Options for the select | | disabled | boolean | Disable the select |

XGenUIRadio

| Input | Type | Description | |-------------- |----------------------------|-----------------------------------| | label | string | Field label | | placeholder | string | Placeholder text | | value | any | Selected value (two-way binding) | | options | XGenUISelectOption[] | Options for the select | | disabled | boolean | Disable the select |

License

MIT