Spatial Tooltip

A floating toolbar tooltip with fluid spring-driven clip-path reveal animations.

Installation

1

Run the following Command

>_npx shadcn@latest add https://minimalui.rshv.dev/r/spatial-tooltip.json

Props

PropTypeDefaultDescription
itemsSpatialTooltipItem[]DEFAULT_ITEMSArray of toolbar items with custom labels, icons, keyboard shortcuts, onClick handlers, and dot indicators.
position"top" | "bottom""top"Position of the spatial tooltip relative to the toolbar.
onSelect(item: SpatialTooltipItem, index: number) => voidundefinedCallback function invoked when a toolbar item is clicked or selected.
activeIdstring | nullundefinedControlled active item ID.
defaultActiveIdstring | nullnullInitial active item ID for uncontrolled state.
classNamestringundefinedCustom CSS class names for the outer wrapper.
toolbarClassNamestringundefinedCustom CSS class names for the toolbar container.
tooltipClassNamestringundefinedCustom CSS class names for the spatial tooltip rail.
itemClassNamestringundefinedCustom CSS class names for individual item buttons.
activeItemClassNamestringundefinedCustom CSS class names for the active item highlight indicator.