@elsilent/vue-frontend-widgets
v0.1.1
Published
Frontend widgets which can be used across Vue 3 projects.
Downloads
491
Readme
vue-frontend-widgets
Frontend widgets which can be used across Vue 3 projects.
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Example of usage
<script lang="ts" setup>
import { Align } from 'vue-frontend-widgets/container';
import { Header, Info } from 'vue-frontend-widgets/label';
</script>
<template lang="pug">
Align(horizontal='center')
Header Hello, world!
Info How are you doing today?
</template>
Contributing to the repository
Adding functionality
- Don't put exported types to your components.
- There are src/utils/interface/component and src/utils/type/component directories where you can put them. Otherwise you'll get errors on building the project.
- Don't bring project-specific functionality to this repository.
- Examples are:
- Assets
- Routing
- Translations
- Other libraries
- Instead if you need these functionalities try to require them from the dependant project.
Preparing for publishing changes
Before creating a pull request please always run yarn lint --fix
to keep the code style consistent and run yarn build
to check for errors.
Don't solely rely on the linter built in your IDE. It might mark some of the things which could be improved but doesn't mark or fix all of them resulting in the reduction of code quality.