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

@akr506/akr-component

v0.0.3

Published

A collection of lightweight and standalone UI components for modern Angular applications.

Readme

@akr506/akr-component

English | 日本語 | 简体中文 | 한국어 | Deutsch | Français | हिन्दी

为现代 Angular 应用程序设计的轻量级、无障碍且独立 (standalone) 的 UI 组件库。

🚀 特性

  • Angular v21 Ready: 基于最新的 Angular 特性构建。
  • 独立组件 (Standalone): 无需 NgModule,易于导入和使用。
  • 轻量且快速: 最小依赖,确保最佳性能。
  • 无障碍设计: 充分考虑无障碍性(使用 @angular/aria)。

📦 安装

通过 npm 安装:

npm install @akr506/akr-component

🛠 使用方法

将需要的组件直接导入到您的独立组件中。请注意,某些组件(如按钮)是作为属性使用的:

import { AkrAlert, AkrButton } from '@akr506/akr-component';
import { Component } from '@angular/core';

@Component({
    selector: 'app-root',
    standalone: true,
    imports: [AkrButton, AkrAlert],
    template: `
        <akr-alert severity="success">欢迎使用 AKR Components!</akr-alert>
        <button akr-button (click)="onHandleClick()">点击我</button>
    `,
})
export class AppComponent {
    onHandleClick() {
        console.log('按钮被点击了!');
    }
}

样式

请确保在 angular.jsonstyles.css 中包含库样式:

@import '@akr506/akr-component/styles.css';

🧱 组件

  • Alert (警报): 支持多种类型的信息通知。
  • Button (按钮): 具有多种样式的通用按钮组件。
  • Form Field (表单字段): 支持标签和错误的表单元素容器。
  • Input (输入框): 增强型文本输入字段。
  • Navigation Tree (导航树): 层次化数据可视化。
  • Radio Button (单选按钮): 自定义单选按钮及分组。

📄 许可证

MIT © Nakamura Akira

📛 名字由来

虽然 "AKR" 官方代表 Angular Kernel Resources(你可能想在你的老板面前用这个),但它的真正起源是源自开发者的名字。