Checkbox Component

Checkbox input for terms of service, newsletters, and optional features.

Usage

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

function MyForm() {
  return (
    <FormFlow apiKey="ff_live_xxx">
      <Checkbox
        name="terms"
        label="I agree to the terms and conditions"
        required
      />
      <SubmitButton>Submit</SubmitButton>
    </FormFlow>
  );
}

Props

PropTypeRequiredDescription
namestringYesField name for form submission
labelstringYesLabel text displayed next to the checkbox
requiredbooleanNoMake the checkbox required. Default: false
disabledbooleanNoDisable the checkbox. Default: false

Examples

Terms & Conditions

<Checkbox
  name="terms"
  label="I agree to the terms and conditions"
  required
/>

Newsletter Subscription

<Checkbox
  name="newsletter"
  label="Subscribe to our newsletter"
/>

Marketing Consent

<Checkbox
  name="marketing"
  label="I consent to receiving marketing communications"
/>
Checkbox Component - FormFlow Documentation | FormFlow