Files
NapCatQQ/.pnpm-store/v3/files/38/b83acd8c43521514155ae919535474c121833132c00a64dca0330e977c92d3803aad970c46f288fbbff877422f4c480c2ac5ee157ab8abc17c7a085634e50e
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

43 lines
1.1 KiB
Plaintext

"use client";
import {
useButton
} from "./chunk-JLZ7IZPR.mjs";
// src/button.tsx
import { Spinner } from "@heroui/spinner";
import { Ripple } from "@heroui/ripple";
import { forwardRef } from "@heroui/system";
import { jsx, jsxs } from "react/jsx-runtime";
var Button = forwardRef((props, ref) => {
const {
Component,
domRef,
children,
styles,
spinnerSize,
spinner = /* @__PURE__ */ jsx(Spinner, { color: "current", size: spinnerSize }),
spinnerPlacement,
startContent,
endContent,
isLoading,
disableRipple,
getButtonProps,
getRippleProps,
isIconOnly
} = useButton({ ...props, ref });
return /* @__PURE__ */ jsxs(Component, { ref: domRef, className: styles, ...getButtonProps(), children: [
startContent,
isLoading && spinnerPlacement === "start" && spinner,
isLoading && isIconOnly ? null : children,
isLoading && spinnerPlacement === "end" && spinner,
endContent,
!disableRipple && /* @__PURE__ */ jsx(Ripple, { ...getRippleProps() })
] });
});
Button.displayName = "HeroUI.Button";
var button_default = Button;
export {
button_default
};