
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
@rajkrajpj/cultivate-ui-library
Advanced tools
A modern, type-safe, accessible React component library for fintech investor forms. Build complete investor forms in minutes with zero configuration, supporting multiple regulations (RegA+, RegD, RegCF) and investor types.
A modern, type-safe, accessible React component library for fintech investor forms. Build complete investor forms in minutes with zero configuration, supporting multiple regulations (RegA+, RegD, RegCF) and investor types.
npm install @rajkrajpj/cultivate-ui-library
import "@rajkrajpj/cultivate-ui-library/styles"
// tailwind.config.js
module.exports = {
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/@rajkrajpj/cultivate-ui-library/**/*.{js,ts,jsx,tsx}",
],
// ...rest of your config
}
import {
createDefaultSteps,
InvestorFormData,
InvestorFormWizard,
} from "@rajkrajpj/cultivate-ui-library"
export default function MyInvestorForm() {
// Define your offering parameters
const offeringParams = {
offeringId: "my-offering-123",
companyName: "My Startup Inc",
sharePrice: 10,
minInvestment: 100,
maxInvestment: 10000,
deadline: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000), // 30 days
regulation: "regA",
}
// Zero configuration - uses all sensible defaults
const steps = createDefaultSteps({
regulation: offeringParams.regulation,
})
const handleComplete = async (formData: Partial<InvestorFormData>) => {
// Submit to your API
await fetch("/api/investments", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(formData),
})
console.log("Investment submitted successfully!")
}
return (
<div className="max-w-md mx-auto p-8">
<InvestorFormWizard<InvestorFormData>
steps={steps}
regulation={offeringParams.regulation}
offeringParams={offeringParams}
onComplete={handleComplete}
/>
</div>
)
}
That's it! You now have a complete 12-step investor form with validation, persistence, and regulation compliance.
The library provides a complete investor onboarding flow:
For production applications requiring API integration at each step:
import { StepHandlers } from "@rajkrajpj/cultivate-ui-library"
const stepHandlers: StepHandlers = {
onGetStartedSubmit: async (data) => {
// Save lead immediately
await fetch("/api/leads", {
method: "POST",
body: JSON.stringify({
email: data.email,
firstName: data.firstName,
lastName: data.lastName,
}),
})
},
onInvestmentAmountSubmit: async (data) => {
// Validate investment limits
await fetch("/api/validate-investment", {
method: "POST",
body: JSON.stringify({
amount: data.investmentAmount,
investorType: data.investorType,
}),
})
},
onIdentityInfoSubmit: async (data) => {
// Submit KYC verification
await fetch("/api/kyc-verification", {
method: "POST",
body: JSON.stringify({
ssn: data.ssn,
birthDate: data.birthDate,
address: data.address,
}),
})
},
}
const steps = createDefaultSteps({
regulation: "regCF",
enableDebugLogs: process.env.NODE_ENV === "development",
stepHandlers,
customSuccessHandler: () => {
window.location.href = "/investment-success"
},
})
<InvestorFormWizard
steps={steps}
regulation="regA"
offeringParams={offeringParams}
persistenceKey="investor-form-draft" // Auto-saves to localStorage
onError={(error, stepId) => {
console.error(`Error in step ${stepId}:`, error)
}}
onComplete={handleComplete}
/>
Override CSS variables for custom branding:
:root {
--primary: #0066cc;
--primary-foreground: #ffffff;
--secondary: #6b7280;
--background: #f9fafb;
--border: #e5e7eb;
--input: #ffffff;
--ring: #0066cc;
}
interface InvestorFormWizardProps<T> {
steps: StepConfig<T>[] // Step configurations
regulation: "regA" | "regD" | "regCF" // Regulation type
offeringParams?: OfferingParams // Offering details
onComplete?: (data: Partial<T>) => Promise<void> // Form completion
onError?: (error: Error, step: string) => void // Error handling
persistenceKey?: string // Auto-save key
initialData?: Partial<T> // Pre-populate data
}
interface OfferingParams {
offeringId: string // Unique identifier
companyName: string // Display name
sharePrice: number // Price per share
minInvestment: number // Minimum amount
maxInvestment: number // Maximum amount
deadline: Date // Offering deadline
regulation: string // Regulation type
}
Before (Legacy):
// ~500+ lines of custom form code
// Manual step management
// Custom validation logic
// Manual persistence
// Regulation-specific hardcoding
After (Library):
// ~25 lines of business logic
const steps = createDefaultSteps({ regulation: "regA" })
return <InvestorFormWizard steps={steps} onComplete={handleSubmit} />
Key Benefits:
MIT License - see LICENSE for details.
Ready to build investor forms in minutes? Check out the examples to see the library in action!
FAQs
A modern, type-safe, accessible React component library for fintech investor forms. Build complete investor forms in minutes with zero configuration, supporting multiple regulations (RegA+, RegD, RegCF) and investor types.
The npm package @rajkrajpj/cultivate-ui-library receives a total of 2 weekly downloads. As such, @rajkrajpj/cultivate-ui-library popularity was classified as not popular.
We found that @rajkrajpj/cultivate-ui-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.