mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-09 16:31:47 +01:00
22 lines
476 B
React
22 lines
476 B
React
|
import React from 'react'
|
||
|
import { Select, Input } from 'rebass'
|
||
|
|
||
|
/*** Number fields with support for min, max and units and documentation*/
|
||
|
class ColorField 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}
|
||
|
/>
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default ColorField
|