link

Used to link to an address, with an underline effect by default.

Example

Basic usage

1<link theme="Info" text="'Github'" href="'https://www.github.com'"></link>
1<link
2    theme="Info"
3    text="'Github'"
4    href="'https://www.github.com'"
5    padding="10.0 16.0"
6    border_radius="2.0"
7    underline_visible="false"
8    background_visible="true">
9</link>

Properties

NameDescriptionType
themeThemeThemes
background_colorBackground colorMakepadColor
hover_colorHover colorMakepadColor
focus_colorFocus colorMakepadColor
border_colorBorder colorMakepadColor
underline_visibleWhether to display underlinebool
underline_colorUnderline colorMakepadColor
underline_hover_colorUnderline color when hoveringMakepadColor
underline_focus_colorUnderline color when focusingMakepadColor
underline_widthUnderline widthF32
border_radiusBorder corner radiusF32
roundIs it a circlebool
background_visibleIs the background visiblebool
textText contentString
font_sizeFont sizeF64
colorFont colorMakepadColor
text_hover_colorFont color when hoveringMakepadColor
text_focus_colorFont color when focusedMakepadColor
font_familyFont family pathLiveDependency
cursorMouse pointer styleMouseCursor
hrefHyperlink addressString
link_typeLink typeLinkType
visibleIs it visiblebool
abs_posAbsolute positionDVec2
marginmarginMargin
widthwidthSize
heightheightSize
scrollscroll offsetDVec2
clip_xclip X axis or notbool
clip_yclip Y axis or notbool
paddingpaddingPadding
alignalignmentAlign
flowflowFlow
spacingspacingF64
animation_keyanimation keybool
event_keyevent keybool
grab_key_focuscapture keyboard focusbool

Event callback

NameDescriptionParameters
hover_inMouse hover eventGLinkHoverParam
hover_outMouse out eventGLinkHoverParam
clickedClick eventGLinkClickedParam
focusFocus eventGLinkFocusParam
focus_lostLost focus eventGLinkFocusLostParam