For AI agents: the complete documentation index is available at https://rickyshin93.github.io/tao-ui/llms.txt, the full documentation bundle is available at https://rickyshin93.github.io/tao-ui/llms-full.txt, and this page is available as Markdown at https://rickyshin93.github.io/tao-ui/components/affix.md.
v0.0.57
  • English
  • Affix

    Navigation@rockshin/tao-ui

    Pins content when it crosses a scroll container boundary.

    This native tao-ui component follows the public API of Ant Design 6.7.0. Appearance, theme tokens and Semantic DOM customization belong to tao-ui; configure themes with TaoProvider.

    Affix uses fixed positioning and a placeholder, not CSS sticky. target returns a Window or HTMLElement; offsets are measured from that target.

    When to use

    Keep a small set of actions visible within a defined scroll target. The examples use a dedicated scroll container.

    Examples

    Top boundary

    390 × 640
    TSX

    Observe affixed state

    390 × 640
    TSX

    Bottom boundary

    390 × 640
    TSX

    Change the offset and update position

    390 × 640
    TSX

    API

    Affix

    PropertyDescriptionTypeDefault Value