X Enterprises
nuxt-x-affiliate

SignupForm

Affiliate application form with configurable fields for name, email, website, company, and promotion strategy.

SignupForm

The XAFSignupForm component renders the affiliate application form on the public landing page. Field visibility is configurable via props or app.config.ts defaults. On submission it emits the form data rather than posting directly — the consuming app handles the API call.

Components

<XAFSignupForm />

<XAFSignupForm
  title="Join Our Affiliate Program"
  submit-label="Apply Now"
  :show-website="true"
  :show-company="false"
  :show-message="true"
  @submit="handleAffiliateApply"
/>

Props

PropTypeDefaultDescription
titlestring'Join Our Affiliate Program'Form heading
subtitlestring'Earn commissions...'Form subheading
submitLabelstring'Apply Now'Submit button label
successMessagestring'Application submitted...'Message shown after successful submit
showWebsitebooleantrueShow website URL field
showCompanybooleanfalseShow company name field
showMessagebooleantrueShow promotion strategy textarea

Emits

EventDescription
submitFired with AffiliateFormData when the form is submitted successfully

AI Context

component: XAFSignupForm
package: "@xenterprises/nuxt-x-affiliate"
use-when: Affiliate program landing page application form
Copyright © 2026