mantine-form

Automate React form creation and validation using Mantine's useForm and getInputProps.

15|Updated Dec 4, 2025
One-click install
npx skills add https://github.com/usebondery/bondery --skill mantine-form
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mantine-form
Source: https://github.com/usebondery/bondery/tree/main/.agents/skills/mantine-form
Command: npx skills add https://github.com/usebondery/bondery --skill mantine-form

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building Mantine forms can be time-consuming and error-prone without a guided workflow that handles state, validation, and submission across complex forms.

Core Features & Use Cases

  • Set up forms with useForm, including initial values and validation rules (including async validation).
  • Bind inputs with getInputProps for seamless value, change, and error handling across simple and nested fields.
  • Manage submission flow with onSubmit, including cross-field validation, and error handling for server responses.
  • Support both controlled and uncontrolled modes, array fields, and form context sharing across components.

Quick Start

Create a Mantine form using useForm, wire inputs with getInputProps, and handle validation on submit.

Frequently Asked Questions about mantine-form

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Mantine form with validation in React?

To build a Mantine form with validation, use the useForm hook to define initial values and rules, bind inputs with getInputProps, and handle submission through onSubmit. This automates state management, field-level checks, and error handling.

What is the best way to handle nested fields and array fields in React forms?

Handling nested fields and array fields requires a form utility that supports complex data structures. Using useForm with getInputProps allows seamless value tracking and error management across both nested and array field configurations.

Does Mantine useForm support async validation for React inputs?

Yes, Mantine useForm supports async validation for React inputs. You can define asynchronous validation rules within the useForm setup to verify data against a server or external source before allowing form submission.

How do I share form state across multiple components in React?

To share form state across multiple components in React, use a form context. This allows you to pass the useForm instance to deeply nested child components, enabling them to access field values and errors without prop drilling.

Can I use controlled and uncontrolled modes for Mantine forms?

Yes, you can use both controlled and uncontrolled modes for Mantine forms. The useForm hook supports controlled components for immediate value access and uncontrolled components for performance, managing internal state automatically via getInputProps.

How do I handle server response errors during React form submission?

To handle server response errors during React form submission, use the onSubmit handler. It enables cross-field validation and allows you to catch server responses, mapping returned errors directly back to specific form fields.