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

38 lines
1.2 KiB
Plaintext

"use client";
import {
useCheckboxGroup
} from "./chunk-LLMGIUXO.mjs";
import {
CheckboxGroupProvider
} from "./chunk-LK575OWX.mjs";
// src/checkbox-group.tsx
import { forwardRef } from "@heroui/system";
import { jsx, jsxs } from "react/jsx-runtime";
var CheckboxGroup = forwardRef((props, ref) => {
const {
children,
context,
label,
description,
isInvalid,
errorMessage,
getGroupProps,
getLabelProps,
getWrapperProps,
getDescriptionProps,
getErrorMessageProps
} = useCheckboxGroup({ ...props, ref });
return /* @__PURE__ */ jsxs("div", { ...getGroupProps(), children: [
label && /* @__PURE__ */ jsx("span", { ...getLabelProps(), children: label }),
/* @__PURE__ */ jsx("div", { ...getWrapperProps(), children: /* @__PURE__ */ jsx(CheckboxGroupProvider, { value: context, children }) }),
isInvalid && errorMessage ? /* @__PURE__ */ jsx("div", { ...getErrorMessageProps(), children: errorMessage }) : description ? /* @__PURE__ */ jsx("div", { ...getDescriptionProps(), children: description }) : null
] });
});
CheckboxGroup.displayName = "HeroUI.CheckboxGroup";
var checkbox_group_default = CheckboxGroup;
export {
checkbox_group_default
};