-
LIOTIER MARION authoredLIOTIER MARION authored
README.md 1.90 KiB
mth-login-form
The storybook documentation is available here.
V models
Name | Description | Type | Default |
---|---|---|---|
errorMessage |
the error message to display | string|undefined |
undefined |
Emits
Name | Description | Type of $event
|
---|---|---|
submit |
triggered when the form is submitted | User |
Use example
This web component requires Vuetify.
<template>
<mth-login-form
v-model="errorMessage" @submit="console.log($event)"
/>
</template>
<script setup lang="ts">
import { MthLoginForm } from "@metabohub/mth-login-form"; // import component
import "@metabohub/mth-login-form/dist/style.css"; // import style
const errorMessage = ref<string|undefined>(undefined);
</script>
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Vitest
Run Unit Tests withnpm run test:unit
Check the coverage of the unit tests :
npm run coverage
ESLint
Lint withnpm run lint
View documentation
npm run storybook