UNPKG

@heroui/navbar

Version:

A responsive navigation header positioned on top side of your page that includes support for branding, links, navigation, collapse and more.

35 lines (32 loc) 986 B
"use client"; import { useNavbarContext } from "./chunk-IGERPFKH.mjs"; // src/navbar-content.tsx import { forwardRef } from "@heroui/system"; import { useDOMRef } from "@heroui/react-utils"; import { cn } from "@heroui/theme"; import { jsx } from "react/jsx-runtime"; var NavbarContent = forwardRef((props, ref) => { var _a; const { as, className, children, justify = "start", ...otherProps } = props; const Component = as || "ul"; const domRef = useDOMRef(ref); const { slots, classNames } = useNavbarContext(); const styles = cn(classNames == null ? void 0 : classNames.content, className); return /* @__PURE__ */ jsx( Component, { ref: domRef, className: (_a = slots.content) == null ? void 0 : _a.call(slots, { class: styles }), "data-justify": justify, ...otherProps, children } ); }); NavbarContent.displayName = "HeroUI.NavbarContent"; var navbar_content_default = NavbarContent; export { navbar_content_default };