React Support Ticket Form
Collect support requests with category selection, priority levels, and descriptions. Perfect for help desks and customer support.
Installation
npm install @formflow.sh/reactBasic Usage
import { SupportTicketForm } from '@formflow.sh/react';
function Support() {
return (
<SupportTicketForm
apiKey="ff_live_xxx"
categories={['Bug Report', 'Feature Request', 'Question', 'Other']}
priorities={['Low', 'Medium', 'High', 'Urgent']}
/>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
apiKey | string | - | Your FormFlow API key |
categories | string[] | - | Ticket categories |
priorities | string[] | ["Low", "Medium", "High"] | Priority levels |
showPriority | boolean | true | Show priority selector |
theme | "minimal" | "modern" | "brutalist" | "glass" | "minimal" | Visual theme |
Form Fields
- Name - Customer name (required)
- Email - Customer email (required)
- Subject - Ticket subject (required)
- Category - Issue category dropdown
- Priority - Priority level (optional)
- Description - Detailed description (required)
Webhook for Ticket Routing
Use webhooks to send tickets to your help desk software:
// Webhook payload
{
"event": "submission.created",
"submission": {
"name": "John Doe",
"email": "john@example.com",
"subject": "Cannot login",
"category": "Bug Report",
"priority": "High",
"description": "I get an error when..."
}
}Integrations
- Slack - Get notified in a channel
- Discord - Post to support channel
- Zendesk - Create tickets via webhook
- Linear - Create issues via webhook
Related
- ContactForm - General contact
- FeedbackForm - Collect feedback