Modal

View code
Modal body

Use

HTML

<rg-modal>Modal body</rg-modal>

JavaScript

var tags = riot.mount('rg-modal', {
  modal: {
    isvisible: true,
    dismissable: true,
    heading: 'Modal heading',
    buttons: [{
      text: 'Ok',
      type: 'primary',
      action: function () { ... }
    }, {
      text: 'Cancel',
      action: function () { ... }
    }]
  }
})

tags[0].on('close', function () { ... })