Example Code: Slider 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 { SliderButton } from '@typeform/embed-react'
  1. Render the component and apply configurations with properties
const SlideOutForm = () => {
  return (
    <SliderButton 
      id='LQTzMYOw'
      className='primary-button'
      onClose={closeHandler}
      position='left'
    >
      View form
    </SliderButton>
  );
}

Back to gallery