Skip to content
Snippets Groups Projects

mth-login-form

pipeline status npm package

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

Run Unit Tests with Vitest

npm run test:unit

Check the coverage of the unit tests :

npm run coverage

Lint with ESLint

npm run lint

View documentation

npm run storybook