New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sonata-vue-forms

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sonata-vue-forms

Base form components for Vue.js and Sonata CSS.

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

Sonata Vue Forms

Base form components for Vue 3 and Sonata CSS.

Instalation

npm install sonata-vue-forms --save

For Vue 2 use sonata-vue-forms@0.2.2

Usage

import BaseForm from 'sonata-vue-forms';

Vue.use(BaseForm);

The BaseForm component uses Axios to submit the data. You can provide Axios configuration for the request as the second parameter:

import BaseForm from 'sonata-vue-forms';

Vue.use(BaseForm, {
    headers: {'X-CSRF-TOKEN': yourToken},
    withCredentials: true
});

After registering, all components will be available for use:

<base-form action="/example" v-slot="{fields}">
    <div>
        <form-control
            v-model="fields.username"
            name="username"
            label="Username"
        ></form-control>

        <form-control
            v-model="fields.password"
            name="password"
            label="Password"
            type="password"
        ></form-control>

        <form-control
            v-model="fields.remember"
            name="remember"
            label="Remember me"
            type="checkbox"
        ></form-control>

        <div class="text-center">
            <form-button></form-button>
        </div>
    </div>
</base-form>

Requirements

  • Vue >= 3.2
  • Sonata CSS >= 0.3.0

Components

  • BaseForm
  • FieldErrors
  • FormButton

Field components:

  • CheckboxField
  • DateField
  • FileField
  • FormControl
  • RadioField
  • SelectField
  • SwitchField
  • TextArea
  • TextField

Keywords

sonata

FAQs

Package last updated on 09 Jan 2026

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