
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@hanhdt/vue-simpleform
Advanced tools
A Vue component for building form
NPM
$npm install --save @hanhdt/vue-simpleform
YARN
$yarn add @hanhdt/vue-simpleform
CDN
https://unpkg.com/@hanhdt/vue-simpleform@0.4.0/dist/vue-simpleform.umd.js
SimpleForm: This is main component which will generally create HTML form tagFormInput: The form input component utilityLoading: A loading component is called when the form is busySimpleForm
title: This is displayed as Form's title in the <h2> elementoperation: The asynchronous function called when the form is submitted. It is returned in a promise-stylevalid: A Boolean to prevent calling the operation if the form is not validFormInput
name: form input's nameinputClass: the customed classplaceholder: input's placeholdertype: type of input tag renderedSimpleForm component in existing Vue projectin the main.js, import the package as a global component.
import '@hanhdt/vue-simpleform'
SimpleForm component into *.vue template <SimpleForm
class="form"
:title="title"
:operation="() => console.log('form submit')"
:valid="valid">
<!-- FORM TEXT INPUT -->
<FormInput
name="title"
v-model="title"
placeholder="Short title (max 100 chars)"
maxlength="100"
:text="title"
required />
<!-- FORM TEXTAREA INPUT -->
<FormInput
type="textarea"
name="description"
v-model="description"
placeholder="Describe your problem in details"
rows="4" />
<template slot="actions">
<!-- BUTTON ACTIONS -->
<button type="submit">
Submit
</button>
</template>
</SimpleForm>
FAQs
A Vue component for building form
We found that @hanhdt/vue-simpleform demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.