UNPKG

@curvenote/schema

Version:

Schema and markdown parser for @curvenote/editor

14 lines 503 B
import { NodeGroups } from '../types'; import { createAttr as attr, nodeToMystRole, createSpec } from './utils'; export const def = { tag: 'r-switch', name: 'r:switch', mystType: 'reactiveSwitch', attrs: [attr('value'), attr('change', 'only'), attr('label', false)], inline: true, group: NodeGroups.inline, }; export const spec = createSpec(def); export const toMarkdown = (state, node) => nodeToMystRole(state, node, def); export default spec; //# sourceMappingURL=switch.js.map