This library is a collection of Vue 3 framework components used for FastyBird IoT web applications user interfaces.
FastyBird IoT Web UI library is an Apache2 licensed distributed library, developed in Typescript on top of the Vue framework.
- Web user interface elements like modal windows, buttons, alerts, switches etc.
- Forms elements with support for pre and post-fixes
- Page layout components for desktop and mobile views
- Customizable styles
Library is tested against ECMAScript 6
The best way to install @fastybird/web-ui-library is using Yarn:
yarn add @fastybird/web-ui-library
or if you prefer npm:
npm install @fastybird/web-ui-library
Register Vue plugin:
import { createApp } from 'vue';
import { createWebUiTheme } from '@fastybird/web-ui-library'
import App from '@/App.vue';
const app = createApp(App);
app.use(createWebUiTheme());
In you component you could use registered visual, form and layouts components:
<template>
<div>
Your fancy content here
<fb-ui-button
href="/new/page"
variant="primary"
size="md"
>
Click here
</fb-ui-button>
</div>
</template>
Add the types to your "types"
array in tsconfig.json.
{
"compilerOptions": {
"types": [
"@fastybird/web-ui-library"
]
}
}
Learn how to use ui components in documentation.
Use the issue tracker for bugs or mail or Tweet us for any idea that can improve the project.
Thank you for testing, reporting and contributing.
For release info check release page.
The sources of this package are contained in the FastyBird monorepo. We welcome contributions for this package on FastyBird/fastybird.
Adam Kadlec |
Homepage https://www.fastybird.com and repository https://github.com/FastyBird/web-ui-library.