For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/zh/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/zh/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/zh/components/float-button.md.
v0.0.57
  • 简体中文
  • FloatButton

    通用@rockshin/tao-ui

    提供持续可见的悬浮操作与返回顶部控件。

    组件采用 tao-ui 原生实现,公共 API 对齐 Ant Design 6.7.0。外观、主题 token 与 Semantic DOM 定制遵循 tao-ui,主题通过 TaoProvider 配置。

    按钮、Group 与 BackTop 遵循 6.7.0;提示与徽标使用 tao-ui 组件,滚动动画遵循减弱动态效果偏好;固定控件在 iframe 中预览。

    何时使用

    适合跨当前页面使用的少量操作,纯图标按钮需提供可访问名称。

    代码演示

    基础操作与提示

    390 × 640
    TSX

    形状、文字与徽标

    390 × 640
    TSX

    点击展开分组与位置

    390 × 640
    TSX

    受控分组

    390 × 640
    TSX

    悬停展开与禁用操作

    390 × 640
    TSX

    返回滚动容器顶部

    390 × 640
    TSX

    API

    FloatButton

    属性说明类型默认值
    className节点类名string | undefined-
    style节点样式CSSProperties | undefined-
    disabled是否禁用boolean | undefined-