@mapbox/react-control-text

A Mapbox React component.

Usage no npm install needed!

<script type="module">
  import mapboxReactControlText from 'https://cdn.skypack.dev/@mapbox/react-control-text';
</script>

README

@mapbox/react-control-text

A control component that works alongside the react-form package or on its own. By default, the type attribute of the control is text but you can override this by passing password, number, date (as examples) as a type prop instead.

Installation

npm install @mapbox/react-control-text

Props

Please check propTypes in src/control-text.js.