BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ncdai/line-nav

Line Nav

ncdai/line-nav
UnverifiedComponent

Vertical navigation with a line marker that expands on hover and active state.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/exekartik/exeKartik/main/line-nav.json

Source

src/registry/components/line-nav/line-nav.tsxraw.githubusercontent.com/exekartik/exeKartik/main/line-nav.json
1/**
2 * This component is inspired by Devouring Details and Skiper UI.
3 */
4
5"use client"
6
7import { memo, useEffect, useRef } from "react"
8import { motion } from "motion/react"
9
10import { cn } from "@/lib/utils"
11
12const lineVariants = {
13 normal: { width: 24 },
14 active: { width: 40 },
15 hover: { width: 40 },
16}
17
18export type LineNavItem = {
19 title: string
20 href: string
21}
22
23export type LineNavProps = {
24 className?: string
25 /** @fumadocsHref #linenavitem */
26 items: LineNavItem[]
27 /** Href of the active item. */
28 activeHref?: string
29 /** Scroll the active item into view on mount. */
30 scrollActiveIntoView?: boolean
31 /** Called when an item is clicked. */
32 onItemClick?: (
33 item: LineNavItem,
34 event: React.MouseEvent<HTMLAnchorElement>
35 ) => void
36}
37
38export function LineNav({
39 className,
40 items,
41 activeHref,
42 scrollActiveIntoView = true,
43 onItemClick,
44}: LineNavProps) {
45 const activeItemRef = useRef<HTMLAnchorElement | null>(null)
46
47 useEffect(() => {
48 if (scrollActiveIntoView) {
49 activeItemRef.current?.scrollIntoView({ block: "center" })
50 }
51 }, [scrollActiveIntoView])
52
53 return (
54 <nav
55 className={cn("flex flex-col gap-2 py-5.25", className)}
56 style={
57 {
58 "--line-nav-width": `${lineVariants.normal.width}px`,
59 } as React.CSSProperties
60 }
61 >
62 {items.map((item, index) => {
63 const isActive = item.href === activeHref
64
65 return (
66 <LineNavItem
67 key={item.href}
68 ref={isActive ? activeItemRef : undefined}
69 title={item.title}
70 href={item.href}
71 active={isActive}
72 isLast={index === items.length - 1}
73 onClick={
74 onItemClick ? (event) => onItemClick(item, event) : undefined
75 }
76 />
77 )
78 })}
79 </nav>
80 )
81}
82
83const LineNavItem = memo(function LineNavItem({
84 ref,
85 title,
86 href,
87 active = false,
88 isLast = false,
89 onClick,
90}: {
91 ref?: React.Ref<HTMLAnchorElement>
92 title: string
93 href: string
94 active?: boolean
95 isLast?: boolean
96 onClick?: React.MouseEventHandler<HTMLAnchorElement>
97}) {
98 return (
99 <>
100 {/*
101 Rendered as a plain anchor to stay framework-agnostic. For client-side
102 navigation in Next.js, swap `motion.a` for `motion.create(Link)`
103 (import Link from "next/link").
104 */}
105 <motion.a
106 ref={ref}
107 aria-current={active ? "page" : undefined}
108// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • src/registry/components/line-nav/line-nav.tsx

Facts

Registry
ncdai
Type
registry:component
Access
Unverified
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

chanhdai.com Prathamesh-exe/prathfolio on GitHub Raw registry item This item as JSON

More from ncdai

All 17 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Apple Hello Effectapple-hello-effectncdaiComponentsUnverified1 dep
Apple Hello Effect - Hindiapple-hello-effect-hindincdaiComponentsUnverified1 dep
Apple Hello Effect - Spanishapple-hello-effect-spanishncdaiComponentsUnverified1 dep
Apple Hello Effect - Vietnameseapple-hello-effect-vietnamesencdaiComponentsUnverified1 dep
Brand Assets Menubrand-assets-menuncdaiComponentsUnverified1 dep
chevrons-up-down-iconchevrons-up-down-iconncdaiComponentsUnverified1 dep
Code Block Commandcode-block-commandncdaiComponentsUnverified4 deps · 3 files
Consent Managerconsent-managerncdaiComponentsUnverified1 dep · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex