0.0.2 • Published 1 year ago
faast-widgets v0.0.2
FAAST Widgets
https://www.npmjs.com/package/faast-widgets
Usage
Installation
npm install faast-widgets
Import
Import the package and its styles in your main.js file:
import { createApp } from 'vue'
import App from './App.vue'
import FAASTWidgets from 'FAAST-widgets'
import 'FAAST-widgets/dist/style.css'
createApp(App).use(FAASTWidgets).mount('#app')
DescriptionAssessment Component
The DescriptionAssessment
component is used for assessing company descriptions. It accepts props for coverage, content, and colors.
Props
descriptionTopicCoverage
: Objectcontent
: Object- options: title, description, functiondescription1, functiondescription2.
colors
: Object- options: primary, borderColor, backgroundColor.
Example Usage
<template>
<DescriptionAssessment
:descriptionTopicCoverage="
{
team: { score : 4 , comments : 'The score of 4 was assigned because...' },
problem : { score : 4 , comments : 'The problem score of 4 was assigned because...' },
... }"
:content="
{
title: 'Description Assessment',
description: 'The following assessment provides a detai...'
}"
:colors=" { primary: '#4CAF50' } "
/>
</template>