Files
NapCatQQ/.pnpm-store/v3/files/3e/d7b59f551fb5eab525903aa4d012bec82884489db6aaa04fee7d5cf6fff2e71361b65dbd4f2ba02731a505d26bb874acef95f3a22db82b162e4e674aae5672
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

35 lines
981 B
Plaintext

"use client";
import {
useNavbarContext
} from "./chunk-IGERPFKH.mjs";
// src/navbar-item.tsx
import { forwardRef } from "@heroui/system";
import { useDOMRef } from "@heroui/react-utils";
import { clsx, dataAttr } from "@heroui/shared-utils";
import { jsx } from "react/jsx-runtime";
var NavbarItem = forwardRef((props, ref) => {
var _a;
const { as, className, children, isActive, ...otherProps } = props;
const Component = as || "li";
const domRef = useDOMRef(ref);
const { slots, classNames } = useNavbarContext();
const styles = clsx(classNames == null ? void 0 : classNames.item, className);
return /* @__PURE__ */ jsx(
Component,
{
ref: domRef,
className: (_a = slots.item) == null ? void 0 : _a.call(slots, { class: styles }),
"data-active": dataAttr(isActive),
...otherProps,
children
}
);
});
NavbarItem.displayName = "HeroUI.NavbarItem";
var navbar_item_default = NavbarItem;
export {
navbar_item_default
};