@porsche-design-system/components-angular
TypeScript icon, indicating that this package has built-in type declarations

3.14.0 • Public • Published

Porsche Design System - Components Angular

Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG. Visit the Porsche Design System to learn more.

Using the Porsche Design System

Installation

Run the following command using npm:

npm install @porsche-design-system/components-angular

If you prefer Yarn, use the following command instead:

yarn add @porsche-design-system/components-angular

Usage

After adding the @porsche-design-system/components-angular package to your project, you've to import the PorscheDesignSystemModule in every module you want to use the component library.

// app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { PorscheDesignSystemModule } from '@porsche-design-system/components-angular';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, PorscheDesignSystemModule],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

Change your App file to use at least one Porsche Design System component, for example:

// app.component.ts

import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  template: `
    <div id="app">
      <p-button>Some label</p-button>
    </div>
  `,
  styles: [],
})
export class AppComponent {}

Methodology

Our goal is to provide easy-to-use and well-documented components so that developers don’t need to worry about the implementation but can focus on easily creating qualitative and consistent digital Porsche experiences. We ensure that our components are made for everyone and meet latest quality standards of usability, accessibility, performance and compatibility. In some points the components are built restrictive to define consistent standards for diverse Porsche applications but ensure enough flexibility to meet different context requirements.

License

  • See Custom License within npm package

Package Sidebar

Install

npm i @porsche-design-system/components-angular

Weekly Downloads

2,505

Version

3.14.0

License

SEE LICENSE IN LICENSE

Unpacked Size

4.82 MB

Total Files

184

Last publish

Collaborators

  • stephanschroeter
  • porschedesignsystem