1.5.0 • Published 4 months ago

pns-component-library v1.5.0

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

PNS Component Library Vue 3 + Vite

This library provides some ready-to-use responsive components with Vue 3. Developers can directly use the components without setting the non-web UI and UX (all included in the library).

How to Set Up

You have already created a vue project.

Step 1:

npm install pns-component-library

Step 2:

In your main.js, import the library and use it for your app instance.

  import { createApp } from 'vue';
  import PNSComponentLibray from "pns-component-library";

  const app = createApp(App);
  app.use(PNSComponentLibray);

Step 3

Now you should be able to access the components, directives and icons in the library.

Components:

  • SimplifiedNotification
  • InputBox
  • SingleSelector
  • ResponsiveButton
  • Checkbox
  • Radio (support group radio)
  • WholePageErrorPopup

Directives:

  • component-loading

Composables:

  • useWindowSize
  • FloatingNotification

Icons:

If npm install pns-component-library, and want to use any following icons:

iconsMap.iconName is the URL or Data URI (Uniform Resource Identifier) of the corresponding svg icon. Eg.

  <template>
    <img :src = "iconsMap['eye_icon']" />
  </template>
  <script>
 import { iconsMap } from "pns-component-library
  export default{
    data(){
      return{
        iconsMap,
      }
    }
  }
  </script>

All icons' names

  • black_arrow_down
  • black_arrow_to_right
  • black_calendar_icon
  • black_magnifying_glass_icon
  • cyan_arrow_down
  • dark_blue_arrow_down
  • dark_gray_arrow_down
  • eye_icon
  • eye_with_cross_icon
  • green_notification_icon
  • grey_arrow_down
  • grey_arrow_to_right
  • info_blue_icon
  • input_clear_icon
  • notification_cross_icon
  • red_notification_icon
  • red_sad_face
  • white_arrow_down
  • yellow_notification_icon
1.5.0

4 months ago

1.4.0

5 months ago

1.3.0

5 months ago

1.2.6

5 months ago

1.2.5

5 months ago

1.2.4

5 months ago

1.2.3

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

5 months ago

1.1.0

6 months ago

1.0.0

6 months ago