deku-button
Advanced tools
+13
-1
@@ -18,4 +18,13 @@ /** @jsx dom */ | ||
| }, | ||
| disabled: { | ||
| type: 'boolean' | ||
| }, | ||
| name: { | ||
| type: 'string' | ||
| }, | ||
| onClick: { | ||
| type: 'function' | ||
| }, | ||
| type: { | ||
| type: 'string' | ||
| } | ||
@@ -27,7 +36,10 @@ }; | ||
| var children = props.children; | ||
| var disabled = props.disabled; | ||
| var name = props.name; | ||
| var onClick = props.onClick; | ||
| var type = props.type; | ||
| return (0, _magicVirtualElement2['default'])( | ||
| 'button', | ||
| { 'class': ['Button', props['class']], onClick: onClick }, | ||
| { 'class': ['Button', props['class']], disabled: disabled, name: name, onClick: onClick, type: type }, | ||
| children | ||
@@ -34,0 +46,0 @@ ); |
+2
-2
| { | ||
| "name": "deku-button", | ||
| "version": "1.1.0", | ||
| "description": "My ultimate module", | ||
| "version": "1.1.1", | ||
| "description": "Button component for deku", | ||
| "license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "kevva/deku-button", |
3550
6.8%40
42.86%