Overview
TheMantlzProps interface defines the main configuration properties for Mantlz form components. It provides options for form identification, styling, user engagement features, and redirect handling.
Type Definition
Properties
Unique identifier for the form. This is required to connect the component to your Mantlz form configuration.
Optional CSS class name to apply custom styles to the form container.
Enable display of the number of users who have joined/submitted the form. Useful for social proof on waitlist forms.
Manually set the initial count of users joined. If not provided, the SDK will fetch this from the API.
Custom label text to display alongside the users joined count. Default format is typically “X users joined”.
URL to redirect users to after successful form submission. This is only available for STANDARD/PRO plans. Free plan users are redirected to Mantlz’s hosted thank-you page.
Pre-built theme to apply to the form. Choose from:
default- Classic Mantlz stylingmodern- Contemporary, clean designneobrutalism- Bold, brutalist aestheticsimple- Minimal, stripped-down styling
Advanced appearance customization object. Provides granular control over colors, typography, and element-level CSS classes.See the Appearance documentation for detailed configuration options.
Usage Example
Related Types
- Appearance - Detailed appearance configuration
- FormSchema - Form structure and field definitions