BuouNext
  • Features
  • DocumentsNew
  • BrutalUINew
  • ShowcaseHot
  • Pricing
  • Blog

    Getting Started

    Introduction

    BuouNext Instruction

    InstallationRun BuouNextProject StructureComponentsAuthenticationEmailAPI CallsDatabasePaymentSEO OptimizationHeadless CMSContact

    AI Instruction

    AI ImageNewAI ChatbotNewAI SearchNewAI NotionNew

    Components

    Super ClockNewFloating DockNewAI Image CompareNewAvatar ListNewClockNewDarkModeNewStepperNewRotation AvatarNewButton with TrailNewDotNewGridNewCounter CardNewMarquee CardNewProfile CardNewBento gridNewBorder Trail CardNewBuouNext FeaturesNewColor CardNewMouse FollowingNewColor GridNewAnimotion In View CardNewLevitate CardNewReorder CardNewGenerate TextNewSmooth Fliping NumberNewSmooth Fliping TextNewSmooth Typing TextNewTyping TextNewWindow Typing TextNewFade In OutNewText DropNewScalingNew
    Docs
    Floating Dock

    Floating Dock

    A floating dock component like mac, acts as a navigation bar.

    Loading...
    Loading...
    Loading...

    Installation

    Install the following dependencies:

    npm install framer-motion

    Copy and paste the Floating Dock code into your project.

    API Reference

    First Dock

    Props

    PropTypeDescription
    mobileClassNamestringAdditional classes for the mobile.
    desktopClassNamestringAdditional classes for the desktop.
    items{ title: string; icon: React.ReactNode; href: string }[]The items to display in the dock.
    animatebooleanEnables or disables sidebar animations.

    Usage

    const links = [
      {
        title: "Twitter",
        icon: (
          <Twitter className="size-full text-neutral-500 dark:text-neutral-300" />
        ),
        href: "https://x.com/bean921112",
      },
      {
        title: "GitHub",
        icon: (
          <Icons.github className="size-full text-neutral-500 dark:text-neutral-300" />
        ),
        href: "https://github.com/buoooou",
      },
    ]
     
    export default function Demo() {
      return (
        <div className="flex items-center justify-center h-[35rem] w-full">
          <FloatingDock
            mobileClassName="translate-y-20" // only for demo, remove for production
            items={links}
          />
        </div>
      )
    }

    Second Dock

    Props

    PropTypeDescription
    classNamestringAdditional classes for the Dock.
    whileTapstringVariantLabels | TargetAndTransition
    ...propsmotion.div propsOther props forwarded to the motion div.

    Three Dock

    Props

    PropTypeDescription
    classNamestringAdditional classes for the Dock.
    childrenReact.ReactNodeThe content of the Dock.
    sizenumberDock Icon size.
    magnificationnumberDock Icon magnification.
    distancenumberDock Icon distance.
    ...propsmotion.div propsOther props forwarded to the motion div.
    Super ClockAI Image Compare
    BuouNext
    Look at the Bottom Dock
    BuouNext
    Components
    GitHub
    Twitter