CTA
Floating enroll button with a price
A floating enroll button: pinned to the bottom of the screen, it slides up once the first screen has scrolled out of view and hides while pricing or the final call are on screen — so the button isn't duplicated next to prices. A caption with a green dot on the left, the price in a pill on the right.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- label, price, href, caption
- showAfter, hideNear, hideAtBottom, placement
- accent, tone
Built from
The install command brings these components too. The block only passes them props: their palette and behaviour stay their own.
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/cta-018?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Cta018
label="Enroll"
price="$490"
href="#pricing"
caption="Starts 6 October"
showAfter="#hero"
hideNear="#pricing, #enroll, #footer"
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Theme
tone· default: auto- Label
label· default: Enroll- Price
price· default: $490- Caption
caption· default: Starts 6 October- Accent
accent· default: theme colour
Used in scenarios
- Online courseSticky CTA
More in CTA
FAQ
- How do I add Floating enroll button with a price with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Floating enroll button with a price depend on?
- No npm packages beyond React and Tailwind CSS. It also installs catalog components: button-117.
- What can I change in Floating enroll button with a price?
- Adapt: label, price, href, caption; showAfter, hideNear, hideAtBottom, placement; accent, tone. Keep as installed: the button-117 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; appearing after the first screen and hiding near pricing — the button stays out of the way where prices already are; the price pill inside the button.
- Is Floating enroll button with a price free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/cta-018.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
A composite block: imports button-117 from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, zero npm dependencies, “use client” for visibility. The root is position:fixed at the bottom with safe-area, pointer-events:none; the bar is pointer-events:auto, translateY(100 %)→0 over .55 s on data-show. showAfter is the threshold selector: an IntersectionObserver sets passed once the element is above the viewport; hideNear lists selectors whose intersection (rootMargin -20 % at the bottom) hides the button; hideAtBottom hides it near the page bottom. Without showAfter the button is visible at once. placement=static puts the button in the flow (for previews and docs). The caption shows from 40rem (container query). A hidden bar is aria-hidden with tabIndex=-1 on the link. Palette --vibeui-cta-018-* with light-dark: white and cool grey, an indigo accent, a lime marker for highlights; Unbounded and Inter via <link precedence> from Google Fonts with system fallbacks. tone pins the scheme, accent, ink and background override colours.
Tags
- course
- education
- edtech
- landing
- cta
- floating
- sticky
- button
- price
- composite
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…