@open-rlb/ng-bootstrap
v3.3.41
Published
Angular component library built on Bootstrap 5.3 (signals, OnPush), with timezone-aware date handling via [`@open-rlb/date-tz`](https://www.npmjs.com/package/@open-rlb/date-tz). Supports **Angular 17.2+** (built with Angular 21).
Readme
@open-rlb/ng-bootstrap
Angular component library built on Bootstrap 5.3 (signals, OnPush), with timezone-aware
date handling via @open-rlb/date-tz.
Supports Angular 17.2+ (built with Angular 21).
Installation
Recommended — ng add
ng add @open-rlb/ng-bootstrapThe schematic will:
- install the required dependencies (
bootstrap,bootstrap-icons,@open-rlb/date-tz,@ngx-translate/core,@angular/cdk, and@types/bootstrap) at compatible versions; - register the Bootstrap and Bootstrap Icons stylesheets in
angular.json; - add
provideRlbBootstrap()to your application providers; - scaffold a
RlbStarterComponent(src/app/rlb-starter/) you can render to verify the setup (pass--skip-starterto opt out); - copy the bundled Claude skills into
.claude/skills/—date-tzplus therlb-*component guides (pass--skip-skillsto opt out).
Manual
npm install @open-rlb/ng-bootstrapWhen installed this way, npm pulls the declared peer dependencies automatically (npm 7+). Then register the providers and styles yourself:
// app.config.ts
import { provideRlbBootstrap } from '@open-rlb/ng-bootstrap';
export const appConfig: ApplicationConfig = {
providers: [provideRlbBootstrap()],
};// angular.json → projects.<app>.architect.build.options.styles
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
"src/styles.scss"
]Usage
<rlb-card>
<rlb-card-header>Hello</rlb-card-header>
<rlb-card-body>
<button rlb-button color="primary">Click me</button>
</rlb-card-body>
</rlb-card>Development
npm run lib:build— builds the library and itsng-addschematics intodist/rlb/ng-bootstrap.npm run lib:test:ng-add— runs an isolated, in-memory check of theng-addschematic (requires a priorlib:build).npm run lib:pack— builds and packs a publishable tarball.
Publishing
npm run lib:build
cd dist/rlb/ng-bootstrap
npm publish