Skip to content

CyberTooltip 交互提示组件

交互提示组件提供了全息投影风格的提示框,适合在赛博朋克风格界面中展示悬停提示信息。(待完善,页面滚动后提示位置会偏移)

基本用法

不同位置

不同效果

不同主题

不同触发方式

自定义内容

属性

属性名说明类型可选值默认值
content提示内容string
position提示框位置stringtop / right / bottom / left / autotop
effect提示框效果stringhologram / glitch / scan / fadehologram
trigger触发方式stringhover / click / focushover
delay显示延迟(毫秒)number200
width提示框宽度string / numberauto
theme提示框主题stringneon / terminal / holographicneon

插槽

插槽名说明
default触发元素
content提示内容

事件

事件名说明回调参数
show提示框显示时触发
hide提示框隐藏时触发

Relcased under the Mit Lincense.