Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@porsche-design-system/components-vue

Package Overview
Dependencies
Maintainers
0
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@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.

  • 3.23.0-rc.0
  • npm
  • Socket score

Version published
Weekly downloads
116
decreased by-52.26%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 12 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc