3.14.0 • Published 7 days ago

@porsche-design-system/components-vue v3.14.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
7 days ago

Porsche Design System - Components Vue

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-vue

If you prefer Yarn, use the following command instead:

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

Usage

After adding the @porsche-design-system/components-vue package to your project, you've to extend your standard vue setup by the PorscheDesignSystemProvider by adding it to your App.vue file.

// App.vue
<script setup lang="ts">
  import { RouterLink, RouterView } from 'vue-router';
  import { PorscheDesignSystemProvider, PLinkPure } from '@porsche-design-system/components-vue';
</script>

<template>
  <PorscheDesignSystemProvider>
    <header>
      <nav>
        <PLinkPure>
          <RouterLink to="/">Home</RouterLink>
        </PLinkPure>
        <PLinkPure>
          <RouterLink to="/somePage">Some Page</RouterLink>
        </PLinkPure>
      </nav>
    </header>

    <div id="app">
      <RouterView />
    </div>
  </PorscheDesignSystemProvider>
</template>

Plugin

You can also use the PorscheDesignSystemPlugin to extend your vue setup.

// main.ts
import { createApp } from 'vue';
import { createPorscheDesignSystem } from '@porsche-design-system/components-vue';

const app = createApp(App);
app.use(createPorscheDesignSystem({ prefix: 'my-prefix' }));
app.mount('#app');

Composable

The usePorscheDesignSystemPlugin composable provides access to the PorscheDesignSystemPlugin context.

import { usePorscheDesignSystemPlugin } from '@porsche-design-system/components-vue';

const { isPorscheDesignSystemLoaded, componentsReady } = usePorscheDesignSystemPlugin();

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
3.15.0-rc.3

7 days ago

3.15.0-rc.2

8 days ago

3.15.0-rc.1

14 days ago

3.15.0-rc.0

26 days ago

3.14.0-rc.0

1 month ago

3.14.0

1 month ago

3.13.1

1 month ago

3.13.0-rc.2

2 months ago

3.13.0

2 months ago

3.13.0-rc.1

2 months ago

3.13.0-rc.0

2 months ago

3.12.0

3 months ago

3.12.0-rc.1

3 months ago

3.12.0-rc.0

3 months ago

3.11.0-rc.0

3 months ago

3.11.0

3 months ago

3.10.0

3 months ago

3.10.0-rc.5

4 months ago

3.10.0-rc.4

4 months ago

3.10.0-rc.1

5 months ago

3.10.0-rc.3

5 months ago

3.10.0-rc.2

5 months ago

3.10.0-rc.0

5 months ago

3.6.1-rc.0

8 months ago

3.9.0-rc.0

5 months ago

3.7.0-rc.1

7 months ago

3.7.0-rc.0

8 months ago

3.5.0-rc.0

9 months ago

3.3.0-rc.0

10 months ago

3.9.0

5 months ago

3.7.0-rc.2

7 months ago

3.4.0

10 months ago

3.8.0

6 months ago

3.6.1

8 months ago

3.6.0

8 months ago

3.6.0-rc.1

8 months ago

3.6.0-rc.2

8 months ago

3.8.0-rc.0

6 months ago

3.4.0-rc.0

10 months ago

3.6.0-rc.0

8 months ago

3.3.0

10 months ago

3.7.0

7 months ago

3.5.0

9 months ago

3.2.0

11 months ago

3.1.0

11 months ago

3.2.0-rc.0

11 months ago

3.1.0-rc.2

11 months ago

3.0.0-rc.2

12 months ago

3.1.0-rc.0

11 months ago

3.1.0-rc.1

11 months ago

3.0.0

12 months ago

3.0.0-rc.3

12 months ago

3.0.0-rc.1

1 year ago

3.0.0-alpha.6

1 year ago

3.0.0-rc.0

1 year ago

3.0.0-alpha.5

1 year ago

2.21.0

1 year ago

3.0.0-alpha.4

1 year ago

2.21.0-rc.0

1 year ago

3.0.0-alpha.3

1 year ago

3.0.0-alpha.2

1 year ago

2.20.0-rc.1

1 year ago

2.20.0-rc.0

1 year ago

3.0.0-alpha.1

1 year ago

2.20.0

1 year ago

3.0.0-alpha.0

1 year ago

2.19.1-rc.1

1 year ago

2.19.0

1 year ago

2.19.0-rc.2

1 year ago

2.19.0-rc.1

1 year ago

2.19.0-rc.0

1 year ago