import React from 'react'; const testCustomNavEvent = (direction: string) => { const event = new Event(direction, { bubbles: true }); document.dispatchEvent(event); }; export const testStepData = [ { title: 'Welcome to the Stepper', content: (
We hope you like the content stepper, another super useful tool from the Moralis web3uiKit
), }, { title: 'Learn more', content: (
If any button ID = next
It can be used to navigate
If any button ID = prev
It can be used to navigate too
Stepper is set to 100% height so you can use a parent div to control its height and it will fill the space dynamically. This parent div is set to 450px height. This means the buttons stay fixed to the bottom in the same place always
), }, { title: 'Hope you enjoy', content:you can pass any content, we hope you like the stepper
, }, ]; export const noNavTestStepData = [ { title: 'No Nav Buttons', content: (
If a button has ID = 'prev'
Or a button has ID = 'next'
It can be used to navigate
If a button has ID = 'prev'
Or a button has ID = 'next'
pretty cool, right?
Also you can use custom events
{"const event = new Event('next', { bubbles: true });"}
{'document.dispatchEvent(event);'}
or
{"const event = new Event('prev', { bubbles: true });"}
{'document.dispatchEvent(event);'}
ta da!
If a button has ID = 'prev'
Or a button has ID = 'next'
pretty cool, right?