Sticky Cta Bar

Motion

A Tailwind floating CTA bar that slides up from the bottom once the page scrolls past 320px, with a title, a docs link and a magnetic get started button.

src/registry/premium/sticky-cta-bar.tsx/r/sticky-cta-bar.json
Sticky CTA mounts globally in demos that need it — see Premium motion gallery.

Scroll page to reveal

Installation#

bash
npx shadcn@latest add @minidev/sticky-cta-bar

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/sticky-cta-bar.json

Usage#

tsx
import { StickyCtaBar } from "@/components/ui/sticky-cta-bar"

export function Example() {
  return (
    <StickyCtaBar title="Sticky close on scroll" />
  )
}

API reference#

StickyCtaBar props
PropTypeDefault
titlestring"Ready when you are"
classNamestring-

Dependencies#

npm

motion

Examples#

All Landing page sections for React and Tailwind

Learn more