Sveltejs Forms screenshot

Sveltejs Forms

Author Avatar Theme by Mdauner
Updated: 11 Sep 2020
197 Stars

Declarative forms for Svelte

Categories

Overview:

Sveltejs-forms is a library that provides declarative forms for Svelte. It offers features such as optional schema-based validation through Yup, access to nested properties using paths, and support for custom components. It also includes helper components for Input, Select, and Choice, which help reduce boilerplate code.

Features:

  • Optional schema-based validation: The library supports optional validation through Yup, allowing you to define schemas for your form input fields.
  • Access to nested properties using paths: With Sveltejs-forms, you can easily access nested properties of your form data using paths.
  • Supports custom components: The library provides support for using custom components in your forms.
  • Helper components: Sveltejs-forms includes built-in helper components such as Input, Select, and Choice to help reduce the amount of boilerplate code needed for form development.

Installation:

To install Sveltejs-forms, you can use npm.

npm install sveltejs-forms

Summary:

Sveltejs-forms is a powerful library that provides declarative forms for Svelte. It offers features such as optional schema-based validation, access to nested properties using paths, support for custom components, and helper components for Input, Select, and Choice. With Sveltejs-forms, you can easily create and manage forms in your Svelte applications, reducing the amount of code needed and improving development efficiency.