Free Webinar β Building for Scale with Pion & Webflow
0.1.0
Form Enhancer
Progressive form enhancement with validation and accessibility.
Progressive form enhancement with validation and accessibility.
Features
- β Zero dependencies - Pure React implementation
- β Full accessibility - ARIA labels, keyboard navigation, screen reader support
- β Theme support - Light, dark, and auto modes
- β Reduced motion support - Respects user preferences
Props
captureUtm
- Type:
boolean- Default:true - Capture UTM parameters
phoneMask
- Type:
'US' | 'UK' | 'none'- Default:'US' - Phone mask format
liveValidation
- Type:
boolean- Default:true - Enable real-time validation
theme
- Type:
'light' | 'dark' | 'auto'- Default:'auto' - Theme mode
radius
- Type:
number- Default:8 - Border radius in pixels
density
- Type:
'comfortable' | 'compact'- Default:'comfortable' - Layout density
animate
- Type:
boolean- Default:true - Enable animations
className
- Type:
string - Additional CSS class
children(required)
- Type:
React.ReactNode - Form children
onSubmit
- Type:
(data: Record<string, string>) => void - Submit handler with UTM data
Customization
CSS Variables
Override these variables in your Webflow custom code or CSS:
--cc-radius: 8px; /* Border radius */Webflow Classes
Target these classes in Webflow Designer for custom styles:
.cc-form-enhancer.cc-form-enhancer__fields