UNPKG

b0nes

Version:

Zero-dependency component library and SSR/SSG framework

34 lines (33 loc) 793 B
import { fromConfig } from "/utils/mapper.js" export const components = fromConfig([{ type: 'atom', name: 'box', props: { slot:[ { type: 'atom', name: 'text', props:{ is:'h1', slot:['Home'] } }, { type: 'atom', name: 'text', props:{ is: 'h1', slot:['Welcome !'] } }, { type:'atom', name: 'button', props:{ attrs:'data-fsm-event="GOTO_TODOS"', slot:['Go to Todos'] } } ] } }])