Componentnavigation0.61 KB gzipZero dependencies
Sticky Bar
Floating bottom checkout bar with item counter and admission button.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add sticky-barOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { StickyBar } from "@/components/ui/sticky-bar"; <StickyBar itemCount={2} total="$90.00" actionText="ADMIT NOW" />Source code
sticky-bar.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxsticky-bar.tsx55 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface StickyBarProps extends React.HTMLAttributes<HTMLDivElement> { itemCount?: number; total?: string; actionText?: string; onAction?: () => void; className?: string;} export function StickyBar({ itemCount = 2, total = "$90.00", actionText = "ADMIT NOW", onAction,Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { StickyBar } from "@/components/ui/sticky-bar"; <StickyBar />| Prop | Type | Description |
|---|---|---|
| itemCount | number | Configures item count. (Default: 2) |
| total | string | Configures total. (Default: "$90.00") |
| actionText | string | Configures action text. (Default: "ADMIT NOW") |
| onAction | () => void | Callback invoked on action. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |