Onboarding
Vue Bootstrap 5 Onboarding plugin
Onboarding is a guide plugin to show users how to use your website
Responsive Onboarding plugin built with the latest Bootstrap 5 and Vue 3. It is is a guide plugin to show users how to use your website.
Note: Read the API tab to find all available options and advanced customization
Basic example
To initialize Onboarding on your page simply use
MDBOnboarding
component. Specify steps by giving proper
data-mdb-properties
with data-mdb-step
,
data-mdb-index
and
data-mdb-onboarding-content
as required minimum
Start options
Autostart
Onboarding can be auto initialized by passing
autostart
property to the steps container element. User
can set amount of time after which Onboarding will be triggered with
delay
option
Event triggered start
Pass to startTrigger
selector of element on which user
will trigger startEvent
to start Onboarding.
Backdrop options
Global backdrop
Backdrop for every step inside Onboarding can be set via
backdrop
and backdropOpacity
properties
Individual step backdrop
Indivudal backdrop options can be set with attributes
data-mdb-backdrop
and
data-mdb-backdrop-opacity
.
Autoplay
Set autoplay
and stepsDuration
to enable
autoplay for every step inside container
Autoscroll
Toggle auto scrolling into element that is outside the view with
autoscroll
property.
Popover customization
Popover class
Add custom class for popovers by setting
customClass
property and style it in your css sheet.
Container example
Gallery






Onboarding - API
Import
Properties
Global
Name | Type | Default | Description |
---|---|---|---|
autoFocus
|
Boolean | false |
Set auto focusing step popover element on or off |
autoplay
|
Boolean | false |
Set automatic step change on or off. Use it in combination with
stepsDuration
|
autoscroll
|
Boolean | false |
Defines whether window should automatically scroll into opened step position |
autostart
|
Boolean | false |
Set Onboarding to start automatically after
startDelay seconds
|
backdrop
|
Boolean | false |
Set show backdrop for step popover on or off |
backdropOpacity
|
Number | 0.6 |
Set opacity for step popover backdrop element |
btnClose
|
String | 'btn-close' |
Set class for skip and finish buttons |
btnMain
|
String | 'btn-main' |
Set class for main button style |
btnPause
|
String | 'btn-pause' |
Set class for pause control button |
btnResume
|
String | 'btn-resume' |
Set class for resume control button |
customClass
|
String | ' |
Adds user's custom class to popover element |
debounce
|
Number | 300 |
Set time in miliseconds after which changing of steps via keyboard navigation will be possible |
finishLabel
|
String | 'Finish' |
Defines label for finish button inside popover element |
nextLabel
|
String | 'Next' |
Defines label for next step button inside popover element |
pauseLabel
|
String | 'Pause' |
Defines label for pause button inside popover element when
autoPlay ,stepsDuration or step duration is
set
|
placement
|
String | 'bottom' |
Define placement of step popover. auto | top | bottom | left | right |
prevLabel
|
String | 'Back' |
Defines label for previous step button inside popover element |
resumeLabel
|
String | 'Resume' |
Defines label for resume button inside popover element when
autoPlay ,stepsDuration or step duration is
set
|
skipLabel
|
String | 'Skip' |
Defines label for skip button inside popover element |
startEvent
|
String | '' |
Set event on startTrigger element which will start Onboarding, e.g.
mouseover or click
|
startDelay
|
Number | 0 |
Set time in seconds after which Onboarding will start. Use it with
autoStart or startTrigger / startEvent combination
|
startIndex
|
Number | 1 |
Set index from which Onboarding will start |
startTrigger
|
String | '' |
Set selector for HTML element that will start Onboarding when
startEvent occurs.
|
steps
|
Array |
|
Array of elements to initialize component with. |
stepsDuration
|
Number | 0 |
Set time in seconds after which each step will automatically change to next |
tag
|
String | 'div |
Element wrapper tag |
Each individual step attribute will overwrite its global counterpart behavior.
Step
Name | Type | Default | Description |
---|---|---|---|
autoplay
|
Boolean | true |
Set step autoplay attribute to false to turn off global
autoplay for this particular step
|
backdrop
|
Boolean | Null | null |
Overwrites global backdrop attribute for single step |
btnClose
|
String | '' |
Overwrites global btnClose attribute for single step |
btnMain
|
String | '' |
Overwrites global btnMain attribute for single step |
btnPause
|
String | '' |
Overwrites global btnPause attribute for single step |
btnResume
|
String | '' |
Overwrites global btnResume attribute for single step |
duration
|
Number | 0 |
Overwrites global stepsDuration attribute for single step |
finishLabel
|
String | '' |
Overwrites global finishLabel attribute for single step |
nextLabel
|
String | '' |
Overwrites global nextLabel attribute for single step |
index
|
Number | null |
Set index number for step element |
onboardingContent
|
String | '' |
Set content for step element. Can receive HTML templates |
pauseLabel
|
String | '' |
Overwrites global pasueLabel attribute for single step |
placement
|
String | 'bottom' |
Define placement of step popover. auto | top | bottom | left | right |
prevLabel
|
String | '' |
Overwrites global prevLabel attribute for single step |
resumeLabel
|
String | '' |
Overwrites global resumeLabel attribute for single step |
skipLabel
|
String | '' |
Overwrites global skipLabel attribute for single step |
target
|
String | Null | null |
Define selector for step element when creating Onboarding via JS |
title
|
String | '' |
Set title for step popover element. When no title given, popover shows progress indicator |
Methods
Name | Description | |
---|---|---|
open |
index | Starts Onboarding on step set by the index key. Default is the first step. |
close |
Closes opened step popover. | |
nextStep
|
Opens next step popover. | |
prevStep
|
Opens previous step popover. | |
pause
|
Pauses Onboarding on current step when autoplay is on. | |
resume |
Resumes Onboarding on current step when autoplay is on. |
Events
Name | Description |
---|---|
start
|
Emitted when an Onboarding has started. |
end
|
Emitted when the last step of the Onboarding has ended. |
open
|
Emitted when a step element has opened. |
close
|
Emitted when a step element has closed |
next
|
Emitted when next step is about to be opened. |
previous
|
Emitted when previous step is about to be opened. |
For example, to listen on Onboading start