<message-box>

A web component just for me.

API

<message-box>

A simple message-box web component.

Properties

NameAttributeDescriptionTypeDefault
heightheightThe height of componentstring"initial"
widthwidthThe width of componentstring"initial"
minWidthmin-widthThe min-width of componentstring"initial"
borderborderThe `border` css property of componentstring"0"
colorcolorThe `color` css property of componentstring"255, 255, 255"
radiusradiusThe `border-radius` of componentstring"0"
shadowshadowThe `box-shadow` css property of componentstring"0, 1rem, 1rem"
outoutThe out method of component. one of "right"|"top".string""
timeouttimeoutThe display time of the component.string"0"

Slots

NameDescription
messageThe 'message' component that needs to be displayed, the most basic such as `SPAN`
button`BUTTON`s that need to be displayed

CSS Shadow Parts

NameDescription
--message-box-background-colorSet background color of component
--message-box-opacitySet opacity of component