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
21 lines
769 B
Plaintext
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 };
|