Tab Scroll Action

Tab with scroll action

Marketing BlockNavigation

Overview

Renders a set of feature cards that stack on top of each other as progress (0--1) advances. Intended to be driven by a scroll hook: as the user scrolls through a sticky section, progress increases and each card slides into view above the previous one.

Usage

import { TabScrollAction } from '@leanicon/web-builder-library'

Interactive scroll demo

Scroll inside the container to drive the animation. Cards stack on top of each other as you scroll down.

ADVANCED SEARCH AND RETRIEVAL

Discover

From basic Q&A to complex decision making, surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents, generate summaries, and produce tables and charts instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents across teams to eliminate tedious tasks and accelerate complex workflows.

Automate feature
ENTERPRISE SECURITY

Protect

Keep your data safe with enterprise-grade security controls and compliance certifications.

Protect feature
Scroll to animate

First card active (progress = 0)

The first card is visible; subsequent cards are off-screen below.

ADVANCED SEARCH AND RETRIEVAL

Discover

From basic Q&A to complex decision making, surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents, generate summaries, and produce tables and charts instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents across teams to eliminate tedious tasks and accelerate complex workflows.

Automate feature
ENTERPRISE SECURITY

Protect

Keep your data safe with enterprise-grade security controls and compliance certifications.

Protect feature

Mid progress (progress = 0.33)

Second card slides into view over the first.

ADVANCED SEARCH AND RETRIEVAL

Discover

From basic Q&A to complex decision making, surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents, generate summaries, and produce tables and charts instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents across teams to eliminate tedious tasks and accelerate complex workflows.

Automate feature
ENTERPRISE SECURITY

Protect

Keep your data safe with enterprise-grade security controls.

Protect feature

End progress (progress = 1)

All cards stacked — last card is fully visible on top.

ADVANCED SEARCH AND RETRIEVAL

Discover

From basic Q&A to complex decision making, surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents, generate summaries, and produce tables and charts instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents across teams to eliminate tedious tasks and accelerate complex workflows.

Automate feature
ENTERPRISE SECURITY

Protect

Keep your data safe with enterprise-grade security controls.

Protect feature

Sharp corners

ADVANCED SEARCH AND RETRIEVAL

Discover

Surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents and generate summaries instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents to accelerate workflows.

Automate feature

Custom card background

ADVANCED SEARCH AND RETRIEVAL

Discover

Surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents and generate summaries instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents to accelerate workflows.

Automate feature

Two items only

STEP 1

Connect your tools

Integrate with your existing stack in minutes.

Connect tools
STEP 2

Automate workflows

Build automations without writing code.

Automate workflows

Without images

ADVANCED SEARCH AND RETRIEVAL

Discover

From basic Q&A to complex decision making, surface verifiable insights grounded in your data.

GENERATIVE AI

Create

Co-create documents, generate summaries, and produce tables and charts instantly.

WORKFLOW AUTOMATION

Automate

Deploy AI agents across teams to eliminate tedious tasks and accelerate complex workflows.

Dark mode

ADVANCED SEARCH AND RETRIEVAL

Discover

From basic Q&A to complex decision making, surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents, generate summaries, and produce tables and charts instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents across teams to eliminate tedious tasks and accelerate complex workflows.

Automate feature
ENTERPRISE SECURITY

Protect

Keep your data safe with enterprise-grade security controls.

Protect feature

Mid progress — dark mode

ADVANCED SEARCH AND RETRIEVAL

Discover

Surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents and generate summaries instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents to accelerate workflows.

Automate feature

Sharp corners — dark mode

ADVANCED SEARCH AND RETRIEVAL

Discover

Surface verifiable insights grounded in your data.

Discover feature
GENERATIVE AI

Create

Co-create documents and generate summaries instantly.

Create feature
WORKFLOW AUTOMATION

Automate

Deploy AI agents to accelerate workflows.

Automate feature

Props

Prop

Type

Default

Description

items

TabScrollActionItem[]

—

Array of feature cards (required)

progress

number

—

Scroll progress 0--1 (required)

cardRadius

string

""

Tailwind border-radius for cards

imageRadius

string

""

Tailwind border-radius for images

cardBackground

string

"bg-secondary"

Tailwind background class for cards

colorScheme

"light" | "dark"

—

Force light or dark mode

className

string

—

Additional CSS classes on root

TabScrollActionItem

Field

Type

Description

tag

string

Uppercase monospace label (required)

title

string

Card heading (required)

description

string

Card description (required)

image

ImageProps?

Feature image

cta

CTAButton?

Call-to-action button

Notes

  • Card 0 is always at the base position and sets the container height. Cards 1+ slide up from off-screen.
  • progress is clamped to [0, 1] internally.
  • In production, drive progress with a scroll hook (e.g. Intersection Observer or useScroll from Motion).
  • Dark mode: pass colorScheme="dark" or place inside a .dark ancestor.

Props

NameTypeDefaultRequiredDescription
itemsTabScrollActionItem[]—Yes
progressnumber—No0–1 scroll progress across the items. When omitted, the component drives itself from its own scroll position (tall section + sticky inner) so each card occupies roughly one viewport of scroll travel.
cardRadiusstring—No
imageRadiusstring—No
cardBackgroundstringbg-secondaryNo
headerOffsetRemnumber0NoHeight (in rem) of a sticky/fixed header above this section, e.g. a pinned navbar. In the self-driven (sticky) scroll mode the pinned cards are offset down by this amount and sized to fit the remaining viewport, so the stacked tab bars never slide underneath the header. Default `0`.
colorSchemeenum—No
classNamestring—No