Example Code: Slider Button with React
Steps
- Install the library into your project
npm install @typeform/embed-react --save
- Import selected components into the app
import { SliderButton } from '@typeform/embed-react'
- Render the component and apply configurations with properties
const SlideOutForm = () => {
return (
<SliderButton
id='LQTzMYOw'
className='primary-button'
onClose={closeHandler}
position='left'
>
View form
</SliderButton>
);
}