Example Code: Popup Button with React

Steps

  1. Install the library into your project
npm install @typeform/embed-react --save
  1. Import selected components into the app
  import { PopupButton } from '@typeform/embed-react'
  1. Render the component and apply configurations with properties
const PopupForm = () => {
  return (
    <PopupButton 
      id='LQTzMYOw'
      className='primary-button'
      size={75}
    >
      View form
    </PopupButton>
  );
}

Back to gallery