Files
NapCatQQ/.pnpm-store/v3/files/df/58a12775a42d62c1d92ad5a1540ae8bcc3f3680b738b6a10ba2768171ecc53b899e2af863b81886a25393f580693e7e2db61d0480b89c9e04a58279154f75a
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

21 lines
769 B
Plaintext

import * as react from 'react';
import * as _heroui_system_rsc from '@heroui/system-rsc';
import { HTMLHeroUIProps, PropGetter } from '@heroui/system-rsc';
import { CodeVariantProps } from '@heroui/theme';
import { ReactRef } from '@heroui/react-utils';
interface UseCodeProps extends HTMLHeroUIProps<"code">, CodeVariantProps {
/**
* Ref to the DOM node.
*/
ref?: ReactRef<HTMLElement | null>;
}
declare function useCode(originalProps: UseCodeProps): {
Component: _heroui_system_rsc.As<any>;
children: react.ReactNode;
getCodeProps: PropGetter<Record<string, unknown>, _heroui_system_rsc.DOMAttributes<_heroui_system_rsc.DOMElement>>;
};
type UseCodeReturn = ReturnType<typeof useCode>;
export { UseCodeProps, UseCodeReturn, useCode };