🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

formkit-quasar

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formkit-quasar

Formkit components for Quasar

0.0.16
latest
npm
Version published
Weekly downloads
23
15%
Maintainers
0
Weekly downloads
 
Created
Source

FormKit Quasar

A simple input wrapper of Quasar for FormKit.

Most of the components are based on Quasar, attributes directly pass to the quasar component.

Installation

npm install formkit-quasar

Setup

import { createApp } from 'vue'
import App from './App.vue'
import { Quasar } from 'quasar'

import 'quasar/dist/quasar.prod.css'

const app = createApp(App);

import { createQuasarPlugin } from "formkit-quasar";
import { plugin, defaultConfig } from '@formkit/vue'

app.use(Quasar, {
    plugins: {}
});

app.use(plugin, defaultConfig({
    plugins: [createQuasarPlugin()]
}));

app.mount('#app')

Usage


<FormKit type="q-input" label="Input" name="input" validation="required">
    <template v-slot:prepend>
          <q-icon name="event" />
    </template>
</FormKit>

<FormKit type="q-input" label="Password" name="password1" input-type="password"></FormKit>

<FormKit type="q-select" label="Select" name="select1" validation="required" :options="[
   'Monaco',
   'Vatican City',
   'Maldives',
   'Tuvalu',
]" />

<FormKit type="q-checkbox" label="Checkbox" name="checkbox1" />

<FormKit type="q-radio" name="radio1" val="line" label="Line" />

<FormKit type="q-option-group" name="group" :options="[
            { label: 'Battery too low', value: 'bat' },
            { label: 'Friend request', value: 'friend', color: 'green' },
            { label: 'Picture uploaded', value: 'upload', color: 'red' }]
            " />

<FormKit type="q-option-group" option-type="checkbox" name="group2" :options="[
            { label: 'Battery too low', value: 'bat' },
            { label: 'Friend request', value: 'friend', color: 'green' },
            { label: 'Picture uploaded', value: 'upload', color: 'red' }]
            " />

<FormKit type="q-toggle" name="toogle1" />         

<FormKit type="q-rating" name="rating1" />

<FormKit type="q-btn-toggle" name="btn_toggle" :options="[
            { label: 'One', value: 'one' },
            { label: 'Two', value: 'two' },
            { label: 'Three', value: 'three' }
          ]" />

<FormKit type="q-date" name="date1" />         

<FormKit type="q-time" name="time1" />         

<FormKit type="q-file" label="File" name="file1" />

<FormKit type="q-range" label="Range" name="range1" />

<FormKit type="q-color" label="Color" name="color1" />

<FormKit type="q-editor" name="editor1" />

<FormKit type="q-slider" name="slider1" />

<FormKit type="q-textarea" label="Textarea" name="textarea1" validation="required"></FormKit>


FAQs

Package last updated on 07 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts