mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
24 lines
373 B
JavaScript
24 lines
373 B
JavaScript
/** @jsx m */
|
|
|
|
import m from 'mithril';
|
|
|
|
const style = {
|
|
border: '1px solid #eee',
|
|
borderRadius: '3px',
|
|
backgroundColor: '#FFFFFF',
|
|
cursor: 'pointer',
|
|
fontSize: '15px',
|
|
padding: '3px 10px',
|
|
margin: '10px',
|
|
};
|
|
|
|
const Button = {
|
|
view: vnode => (
|
|
<button style={style} {...vnode.attrs}>
|
|
{vnode.children}
|
|
</button>
|
|
),
|
|
};
|
|
|
|
export default Button;
|