BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/nexvyn/icon-bar

Icon Bar

nexvyn/icon-bar
FreeComponent

A horizontal toolbar of icon buttons with bloom-open label reveal on hover/selection, accent dot indicator, and roving tabindex.

Live preview

live · rendered by the registry
Rendered by nexvyn on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.nexvyn.dev/r/icon-bar.json

Source

components/ui/icon-bar.tsxui.nexvyn.dev/r/icon-bar.json · first 6 KB
1'use client'
2
3import {
4 createContext,
5 forwardRef,
6 useCallback,
7 useContext,
8 useEffect,
9 useMemo,
10 useRef,
11 useState,
12 type HTMLAttributes,
13 type ReactNode,
14} from 'react'
15import { useReducedMotion } from 'motion/react'
16import { cn } from '@/lib/utils'
17import { durations } from '@/lib/motion-tokens'
18import { WeightShiftText } from '@/components/ui/weight-shift-text'
19
20interface IconBarContextValue {
21 value: string | null
22 setValue: (v: string | null) => void
23
24 rovingIndex: number
25 setRovingIndex: (i: number) => void
26}
27
28const IconBarContext = createContext<IconBarContextValue | null>(null)
29
30function useIconBarCtx(componentName: string) {
31 const ctx = useContext(IconBarContext)
32 if (!ctx) throw new Error(`${componentName} must be used within IconBar`)
33 return ctx
34}
35
36export interface IconBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue'> {
37 children: ReactNode
38 value?: string | null
39 defaultValue?: string | null
40 onValueChange?: (v: string | null) => void
41 'aria-label'?: string
42}
43
44export const IconBar = forwardRef<HTMLDivElement, IconBarProps>(
45 (
46 {
47 children,
48 value: valueProp,
49 defaultValue = null,
50 onValueChange,
51 'aria-label': ariaLabel = 'Toolbar',
52 className,
53 ...props
54 },
55 ref,
56 ) => {
57 const isControlled = valueProp !== undefined
58 const [internalValue, setInternalValue] = useState(defaultValue)
59 const value = isControlled ? valueProp : internalValue
60
61 const setValue = useCallback(
62 (v: string | null) => {
63 if (!isControlled) setInternalValue(v)
64 onValueChange?.(v)
65 },
66 [isControlled, onValueChange],
67 )
68
69 const [rovingIndex, setRovingIndex] = useState(0)
70 const barRef = useRef<HTMLDivElement>(null)
71
72 const handleKeyDown = useCallback((e: React.KeyboardEvent<HTMLDivElement>) => {
73 const bar = barRef.current
74 if (!bar) return
75 const buttons = Array.from(
76 bar.querySelectorAll<HTMLElement>('[role="toolbar"] > button:not([disabled])'),
77 )
78 if (!buttons.length) return
79
80 const isRTL = bar.ownerDocument.defaultView?.getComputedStyle(bar).direction === 'rtl'
81 const count = buttons.length
82 const currentIdx = buttons.indexOf(document.activeElement as HTMLElement)
83
84 let nextIdx = currentIdx
85
86 if (e.key === 'ArrowRight') {
87 e.preventDefault()
88 nextIdx = isRTL ? (currentIdx <= 0 ? count - 1 : currentIdx - 1) : (currentIdx + 1) % count
89// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • components/ui/icon-bar.tsx
  • components/ui/weight-shift-text.tsx
  • lib/motion-tokens.ts

Facts

Registry
nexvyn
Type
registry:ui
Access
Free
Files written
3
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

Docs on nexvyn ui.nexvyn.dev Nexvyn/Nexvyn-ui on GitHub Raw registry item This item as JSON

More from nexvyn

All 40 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionnexvynComponentsFree1 dep
Action Buttonaction-buttonnexvynComponentsFree3 deps · 4 files
Adaptive Actionsadaptive-actionsnexvynComponentsFree1 dep
AI Inputai-inputnexvynComponentsFree1 dep · 2 files
BadgebadgenexvynComponentsFree2 deps · 2 files
Bars Themebars-themenexvynComponentsFree1 dep · 3 files
Bounce Sidebarbounce-sidebarnexvynComponentsFree1 dep · 2 files
BreadcrumbsbreadcrumbsnexvynComponentsFree1 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