UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

14 lines 518 B
import { NodeGroups } from '../types'; import { createAttr as attr, nodeToMystRole, createSpec } from './utils'; export const def = { tag: 'r-button', name: 'r:button', mystType: 'reactiveButton', attrs: [attr('label', true, 'Click Here'), attr('click', 'only'), attr('disabled')], inline: true, group: NodeGroups.inline, }; export const spec = createSpec(def); export const toMarkdown = (state, node) => nodeToMystRole(state, node, def); export default spec; //# sourceMappingURL=button.js.map