n-affix

Community

Keep UI elements visible by affixing to top or bottom.

Authorjiaiyan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Affix helps keep content visible by sticking to top or bottom during scroll, enabling sticky UI elements.

Core Features & Use Cases

  • Top Affixing: Stick content to the top when scrolling past the trigger.
  • Bottom Affixing: Stick content to the bottom when scrolling past the trigger.
  • Custom Listen Target: Listen to a specific scrollable container.
  • Position Modes: Support both fixed and absolute positioning.
  • Trigger Points: Configurable top/bottom trigger distances.
  • Use Case: Keep a navigation bar or action panel always accessible while content scrolls.

Quick Start

Place an n-affix around the content you want to pin, and set top and trigger-top values to control when it becomes affixed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: n-affix
Download link: https://github.com/jiaiyan/naive-ui-skills/archive/main.zip#n-affix

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.