ngbase-ui
v1.0.1
Published
A modern, lightweight Angular UI library built with Signals and Standalone components.
Readme
@ngbase/ui
A modern, lightweight Angular UI library built with Signals and Standalone components.
🚀 Installation
Install the package via npm:
npm install @ngbase/ui
🛠 Usage
Import the components or directives directly into your standalone components:
import { NgButtonDirective } from '@ngbase/ui';
@Component({
standalone: true,
imports: [NgButtonDirective],
template: <button ngButton (press)="handleClick()">
Click Me
</button>
})export class MyComponent {
handleClick() {
console.log('Button pressed!');
}
}
📦 Development## Building
To build the library:
ng build ngbase-ui
Publishing
Always publish from the dist folder:
1. Build
ng build ngbase-ui
2. Publish
cd dist/ngbase-ui npm publish --access public
Testing
Run unit tests via Karma:
ng test ngbase-ui
📜 Features
- ✅ Signals-based: Optimized for Angular's newest reactivity model.
- ✅ Standalone: Easy to import without heavy NgModules.
- ✅ Accessible: Built-in ARIA support and keyboard navigation.
