@nebula.js/sn-action-button
v2.0.0
Published
Action button supernova
Downloads
4,063
Readme
sn-action-button
Action button supernova for nebula.js
Installing
If you use npm: npm install @nebula.js/sn-action-button
. You can also load through the script tag directly from https://unpkg.com.
Usage
import { embed } from '@nebula.js/stardust';
import actionButton from '@nebula.js/sn-action-button';
// 'app' is an enigma app model
const nuked = embed(app, {
types: [{ // register the action button object
name: 'action-button',
load: () => Promise.resolve(actionButton);
}]
});
nuked.render({
element,
type: 'action-button',
});