mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-06 00:13:04 +01:00
23 lines
498 B
React
23 lines
498 B
React
|
import React from 'react'
|
||
|
import { Input } from 'rebass'
|
||
|
|
||
|
/*** Number fields with support for min, max and units and documentation*/
|
||
|
class StringField extends React.Component {
|
||
|
static propTypes = {
|
||
|
name: React.PropTypes.string.isRequired,
|
||
|
value: React.PropTypes.number,
|
||
|
default: React.PropTypes.number,
|
||
|
doc: React.PropTypes.string,
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return <Input
|
||
|
label={this.props.name}
|
||
|
name={this.props.name}
|
||
|
value={this.props.value}
|
||
|
/>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default StringField
|