0.1.0 • Published 6 months ago

react-form-guardian v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

React Form Guardian

Güvenli, özelleştirilebilir ve kullanıcı dostu çok adımlı form yönetimi için React kütüphanesi.

npm version License: MIT

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