mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 15:40:00 +00:00
Allow passing elems to DocLabel
This commit is contained in:
@@ -5,7 +5,10 @@ import { margins, fontSizes } from '../../config/scales.js'
|
||||
|
||||
export default class DocLabel extends React.Component {
|
||||
static propTypes = {
|
||||
label: React.PropTypes.string.isRequired,
|
||||
label: React.PropTypes.oneOfType([
|
||||
React.PropTypes.object,
|
||||
React.PropTypes.string
|
||||
]).isRequired,
|
||||
doc: React.PropTypes.string.isRequired,
|
||||
style: React.PropTypes.object,
|
||||
cursorTargetStyle: React.PropTypes.object,
|
||||
|
||||
Reference in New Issue
Block a user