elixir-ui-logo

Elixir UI

v1.0.0

/ Components

on this page

Installation

npx shadcn@latest add https://ui.elixirlabs.in/registry/on-this-page.json

Usage

Import the component from the components directory

import { OnThisPage } from "@/components/ui/on-this-page";
<OnThisPage sections={[ { items: [ { title: "Introduction", href: "#introduction" }, { title: "information", href: "#information" }, { title: "info", href: "#info" }, ], }, ]} />

Props Table

PropTypeDefault
sectionsOnThisPageSection[]Required
activeClassNamestring"text-white"
inactiveClassNamestring"text-neutral-400 hover:text-white"
indicatorClassNamestring"bg-gradient-to-b from-purple-400 to-purple-500"
rootMarginstring"-20% 0% -70% 0%"
scrollBehavior"smooth" | "auto""smooth"
renderItem(item: OnThisPageItem, isActive: boolean) => ReactNodeundefined

Previous Page

No previous page

Next Page

No next page