{
"$schema": "https://shadcn-vue.com/schema/registry-item.json",
"name": "floating-bar",
"title": "Floating Bar",
"description": "Responsive Inertia navigation that collapses while scrolling.",
"dependencies": [
"@inertiajs/vue3",
"class-variance-authority"
],
"files": [
{
"path": "registry/js/components/ui/floating-bar/FloatingBar.vue",
"content": "\n\n\n \n\n",
"type": "registry:ui",
"target": "resources/js/components/ui/floating-bar/FloatingBar.vue"
},
{
"path": "registry/js/components/ui/floating-bar/FloatingBarItem.vue",
"content": "\n\n\n \n \n \n \n \n {{\n label\n }}\n \n \n\n",
"type": "registry:ui",
"target": "resources/js/components/ui/floating-bar/FloatingBarItem.vue"
},
{
"path": "registry/js/components/ui/floating-bar/index.ts",
"content": "import type { VariantProps } from 'class-variance-authority';\nimport type { ComputedRef, InjectionKey, Ref } from 'vue';\nimport { cva } from 'class-variance-authority';\n\nexport type FloatingBarContext = {\n collapsed: Ref;\n currentPath: ComputedRef;\n};\n\nexport const floatingBarContextKey = Symbol(\n 'floatingBarContext',\n) as InjectionKey;\n\nexport { default as FloatingBar } from './FloatingBar.vue';\nexport { default as FloatingBarItem } from './FloatingBarItem.vue';\n\nexport const floatingBarItemVariants = cva(\n 'relative flex h-14 flex-col items-center justify-center gap-0.5 overflow-hidden rounded-full transition-[width,margin,opacity] duration-[450ms] ease-[cubic-bezier(0.22,1,0.36,1)] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none',\n {\n variants: {\n variant: {\n default: '',\n },\n state: {\n active: 'bg-primary text-primary-foreground',\n inactive: 'text-muted-foreground hover:text-foreground',\n collapsed: 'ml-0 w-0 opacity-0',\n visible: 'ml-0.5 w-14 opacity-100 first:ml-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n state: 'inactive',\n },\n },\n);\n\nexport type FloatingBarItemVariants = VariantProps<\n typeof floatingBarItemVariants\n>;\n",
"type": "registry:ui",
"target": "resources/js/components/ui/floating-bar/index.ts"
}
],
"type": "registry:ui"
}