Sveltik screenshot

Sveltik

Author Avatar Theme by Nathancahill
Updated: 1 Aug 2021
195 Stars

Powerful forms in Svelte, inspired by Formik.

Overview:

Sveltik CIForms is a component for rendering forms in Svelte. It is inspired by Formik and follows a similar API. It uses the let:props pattern, which is similar to the render prop pattern in React.

Features:

  • Form Rendering: Renders forms in Svelte.
  • Port of Formik: Largely a port of Formik to Svelte and follows a similar API.
  • let:props pattern: Uses the let:props pattern for passing props to the component.

Installation:

To install Sveltik CIForms, follow these steps:

  1. Open your terminal.
  2. Navigate to your project directory.
  3. Run the following command to install the package:
npm install sveltik-ci-forms
  1. Import the component in your Svelte component:
import Sveltik from 'sveltik-ci-forms';
  1. Use the <Sveltik /> component in your Svelte template:
<Sveltik />

Summary:

Sveltik CIForms is a Svelte component for rendering forms. It is a port of Formik to Svelte and follows a similar API. It uses the let:props pattern for passing props to the component. The installation process is simple and straightforward, making it easy to integrate into any Svelte project.