pagraphcontrol/components/label/index.js
2018-11-22 01:58:42 +03:00

12 lines
222 B
JavaScript

const r = require('r-dom');
module.exports = ({ userSelect, passive, ...props }) => r.label({
classSet: {
label: true,
'label-user-select': userSelect,
'label-passive': passive,
},
...props,
}, props.children);