popup popup

A popup component, which is a dialog, tooltip, drawer

Example

Basic usage

1<popup as_prop="popup">
2  <popup_container
3    as_prop="container"
4    height="220.0"
5    width="360.0"
6    flow="Down"
7    theme="Info"
8  >
9    <label text="'Container'"></label>
10  </popup_container>
11</popup>

Properties

NameDescriptionType
themeThemes
opacityF32
background_colorBackground colorMakepadColor
hover_colorHover colorMakepadColor
focus_colorFocus colorMakepadColor
border_colorBorder colorMakepadColor
border_widthBorder widthF32
border_radiusBorder radiusF32
visibleVisiblebool
background_visibleBackground visiblebool
cursorCursor styleMouseCursor
modePopup modePopupMode
close_modeClose modeCloseMode
shadow_colorShadow colorMakepadColor
spread_radiusShadow spread radiusF32
blur_radiusShadow blur radiusF32
shadow_offsetShadow offsetVec2
marginMarginMargin
widthWidthSize
heightHeightSize
abs_posAbsolute positionDVec2
clip_xClip X axisbool
clip_yWhether to crop the Y axisbool
paddingPaddingPadding
alignAlignmentAlign
flowFlowFlow
spacingSpacingF64
scrollScroll offsetDVec2

Event callback

None

Slot

  • container