pigeon-components-library
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Pigeon components Library

This is a custom components library, that is part of a proof of concept with Vue 3, that aims to show one of many ways to design a microfrontend, and at the same time use a NPM library with custom components.

The components on this library were developed reusing some technologies that already exists, like ag-grid and element-plus

Configuration

To install this package, you must run the following command:

yarn install pigeon-components-library

After running the install command, you must import this library styles on your App.vue, inserting this line in some point:

import "pigeon-components-library/dist/style.css";

Components

Table

To use a table, you must do basically the following

<template>
    <Table
      style="width: 100%; height: 80vh"
      class="ag-theme-alpine"
      :columnDefs="columnDefs"
      @grid-ready="onGridReady"
      :defaultColDef="defaultColDef"
      :autoGroupColumnDef="autoGroupColumnDef"
      :groupDisplayType="groupDisplayType"
      :showOpenedGroup="true"
      :animateRows="true"
      :rowData="rowData"
    ></Table>
</template>

<script lang="ts">
import { Table } from "pigeon-components-library";
</script>

All the table component props you can check on ag-grid documentation

Button

To use a button, you must do basically the following

<template>
    <Button type="primary" @click="anyFunction">Search</Button>
</template>

<script lang="ts">
import { Button } from "pigeon-components-library";
</script>

All the button component props you can check on element-plus documentation

Input text

To use an input text, you must do basically the following

<template>
    <Input
        v-model="yourVariable"
        class="anyClass"
        placeholder="Any placeholder"
    ></Input>
</template>

<script lang="ts">
import { Input } from "pigeon-components-library";
</script>

All the input text component props you can check on element-plus documentation

Package Sidebar

Install

npm i pigeon-components-library

Weekly Downloads

8

Version

2.0.6

License

none

Unpacked Size

3.2 MB

Total Files

11

Last publish

Collaborators

  • vitorlofonseca