Sticky Bar

Sticky bottom action bar with a translucent blurred background and a hairline top border. Keeps save, cancel or checkout actions in reach on long pages.

src/registry/ui/sticky-bar.tsx/r/sticky-bar.json

Installation#

bash
npx shadcn@latest add @minidev/sticky-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-bar.json

Usage#

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

export function Example() {
  return <StickyBar />
}

API reference#

StickyBar props
PropTypeDefault
childrenReact.ReactNode-
classNamestring-
All layout components

Learn more