diff --git a/src/components/NimiqButton.vue b/src/components/NimiqButton.vue new file mode 100644 index 00000000..fecf8bda --- /dev/null +++ b/src/components/NimiqButton.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/src/stories/index.stories.js b/src/stories/index.stories.js index 30f65c75..187ac302 100644 --- a/src/stories/index.stories.js +++ b/src/stories/index.stories.js @@ -29,6 +29,7 @@ import LabelInput from '../components/LabelInput.vue'; import Wallet from '../components/Wallet.vue'; import WalletList from '../components/WalletList.vue'; import WalletMenu from '../components/WalletMenu.vue'; +import NimiqButton from '../components/NimiqButton.vue'; import PaymentInfoLine from '../components/PaymentInfoLine.vue'; import QrCode from '../components/QrCode.vue'; import QrScanner from '../components/QrScanner.vue'; @@ -45,6 +46,7 @@ import MigrationWelcome from '../components/MigrationWelcome.vue'; import * as Icons from '../components/Icons'; import '@nimiq/style/nimiq-style.min.css'; +import { getNodeMajorVersion } from 'typescript'; function windowTemplate(slot) { return ` @@ -641,6 +643,25 @@ storiesOf('Components', module) template: ``, }; }) + .add('NimiqButton', () => { + const label = text('label', 'Nimiq Button'); + const link = text('link', ''); + const color = select('color', ['gray', 'blue', 'light-blue', 'green', 'orange', 'red', 'gold'], 'light-blue'); + const small = boolean('small', false); + const inverse = boolean('inverse', false); + const arrow = boolean('arrow', true); + const back = boolean('back', false); + return { + components: {NimiqButton}, + methods: { + click: action('click'), + }, + data() { + return { label, link, color, small, inverse, arrow, back } + }, + template: ``, + }; + }) .add('Contact (deprecated)', () => { const label = text('label', 'Burn address'); const address = text('address', 'NQ07 0000 00000000 0000 0000 0000 0000 0000');