# react-submittable **Repository Path**: mirrors_mapbox/react-submittable ## Basic Information - **Project Name**: react-submittable - **Description**: Stop using preventDefault to get form behavior in React. - **Primary Language**: Unknown - **License**: ISC - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-submittable [![Build Status](https://travis-ci.com/mapbox/react-submittable.svg?branch=main)](https://travis-ci.com/mapbox/react-submittable) [![Coverage Status](https://coveralls.io/repos/mapbox/react-submittable/badge.svg?branch=main&service=github)](https://coveralls.io/github/mapbox/react-submittable?branch=master) Stop using `preventDefault` to get form behavior in React. ```js ``` The `Submittable` component simulates the same enter & escape behaviors you would get with the `submit` event of an HTML form, without having to shut down the default behavior. It also catches the escape key and calls an `onCancel` event when it sees it. ## install npm install --save @mapbox/react-submittable