@bpost/web-design-system
TypeScript icon, indicating that this package has built-in type declarations

1.8.4 • Public • Published

DesignSystem

This library was generated with Angular CLI version 16.2.0.

Usage and imports

In this section, you will learn how to import properly the visual components included in the package and also how to implement the themeing provided.

Theme

In order for the theme to be applied throughout your app, in your root theme add this import :

@import "../node_modules/bpost-components-desy/src/lib/components/themes/theme.scss";

Components playground:

Storybook

Components

In order to use the components in your application / module, you have to import it from the library. Note that if some components needs other imports, it will be described in an upcoming documentation.

Example import with button component :

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BpButton, //adding this line will allow you to use the component.
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
 }

Example use with button component:

<div>

  <bp-button [label]="Usage example" (onClick)="yourMethod(yourParams)" ></bpost-button>

</div>

Readme

Keywords

none

Package Sidebar

Install

npm i @bpost/web-design-system

Weekly Downloads

89

Version

1.8.4

License

ISC

Unpacked Size

7.63 MB

Total Files

544

Last publish

Collaborators

  • stanibpgnet
  • amutha_tm
  • bpost_custom_components
  • peeteko
  • u266996
  • bpost_licences
  • wim_rosseel
  • u514567
  • u530539
  • kaising