Package Exports
- react-form-guardian
- react-form-guardian/dist/index.js
- react-form-guardian/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-form-guardian) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Form Guardian
Güvenli, özelleştirilebilir ve kullanıcı dostu çok adımlı form yönetimi için React kütüphanesi.
Kurulum
npm install react-form-guardian
# veya
yarn add react-form-guardian
Temel Kullanım
import { useFormWizard } from 'react-form-guardian';
const FormWizard = () => {
const wizard = useFormWizard({
steps: [
{
id: 'kisisel',
title: 'Kişisel Bilgiler',
fields: ['tcKimlik', 'email']
},
{
id: 'adres',
title: 'Adres Bilgileri',
fields: ['il', 'ilce']
}
],
formConfig: {
tcKimlik: {
required: true,
rules: [tcKimlikRule]
},
email: {
required: true,
rules: [emailRule]
}
}
});
return (
<form onSubmit={wizard.handleSubmit}>
{/* Form içeriği */}
</form>
);
};
Özellikler
- 🔒 Yerleşik Güvenlik: CSRF koruması
- 🎨 Tema Sistemi: 10+ hazır tema
- ✨ Form Yönetimi: Çok adımlı formlar
- 📝 Doğrulama: TC Kimlik, IBAN, kredi kartı vb.
Dokümantasyon
Detaylı dokümantasyon için:
Lisans
MIT © Yağız Eke