You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bootstrap component is wrapped in a card, and uses other bootstrap components. It can be easily styled.
Component reference
Properties
Property
Type
Default
Description
bg-variant
String
Applies one of the Bootstrap theme colour variants to the background
border-variant
String
Applies one of the Bootstrap theme colour variants to the border
btn-label
String
"Roll"
Text content to place in the button
btn-variant
String
"primary"
Applies one of the Bootstrap theme colour variants to the button
id
String
The id attribute of the component
notation
String
Notation string to set on the component
output-bg-variant
String
Applies one of the Bootstrap theme colour variants to the background of the output container
output-border-variant
String
Applies one of the Bootstrap theme colour variants to the border of the output container
output-text-variant
String
Applies one of the Bootstrap theme colour variants to the text of the output container
output-variant
String
Applies one of the Bootstrap theme colour variants to the output container. This defines the background colour and contrasting text. See Bootstrap Color & background.
text-variant
String
Applies one of the Bootstrap theme colour variants to the text
variant
String
Applies one of the Bootstrap theme colour variants to the component. This defines the background colour and contrasting text. See Bootstrap Color & background.
Slots
Name
Description
button
Content to place in the button
Events
Event
Arguments
Description
notation:change
notation - Current value of the notation input
Change event triggered by the user interaction. Emitted after the notation is changed
roll
notation - Value of the rolled notation. value - The response of the roll
Emitted after a roll is made
Plain HTML
There's also a basic component, which provides HTML markup, without any styling. It applies a class to the elements, so you can style it with your own CSS.
Change event triggered by the user interaction. Emitted after the notation is changed
roll
notation - Value of the rolled notation. value - The response of the roll
Emitted after a roll is made
Renderless component
If you want to write your own HTML markup, you can use the renderless component instead. This provides the logic and functionality, without any markup, so you can build your own.