Select Component

Dropdown menu for selecting from predefined options.

Usage

import { FormFlow, Select, SubmitButton } from '@formflow.sh/react';

function MyForm() {
  return (
    <FormFlow apiKey="ff_live_xxx">
      <Select
        name="plan"
        label="Choose a Plan"
        options={['Free', 'Pro', 'Enterprise']}
        required
      />
      <SubmitButton>Submit</SubmitButton>
    </FormFlow>
  );
}

Props

PropTypeRequiredDescription
namestringYesField name for form submission
optionsstring[]YesArray of options to display
labelstringNoLabel text displayed above the select
placeholderstringNoPlaceholder text for first option. Default: "Select..."
requiredbooleanNoMake the field required. Default: false
disabledbooleanNoDisable the select. Default: false

Examples

Service Selection

<Select
  name="service"
  label="Select Service"
  options={['Consultation', 'Development', 'Design', 'Support']}
  placeholder="Choose a service..."
  required
/>

Priority Level

<Select
  name="priority"
  label="Priority"
  options={['Low', 'Medium', 'High', 'Critical']}
/>

Budget Range

<Select
  name="budget"
  label="Budget Range"
  options={[
    'Less than $1,000',
    '$1,000 - $5,000',
    '$5,000 - $10,000',
    'More than $10,000'
  ]}
/>
Select Component - FormFlow Documentation | FormFlow