Files
NapCatQQ/.pnpm-store/v3/files/a9/406b249b2669ee0726cc4542f5347eb166f3888efca33036875071e81059fd66795084989fc1de708dcd20f5f6b0dd6e5109dcde820b6f0fba040118673eaf
T
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

30 lines
1.1 KiB
Plaintext

import * as react from 'react';
import * as _heroui_system from '@heroui/system';
import { PropGetter, HTMLHeroUIProps } from '@heroui/system';
import { ScrollShadowVariantProps } from '@heroui/theme';
import { ReactRef } from '@heroui/react-utils';
import { UseDataScrollOverflowProps } from '@heroui/use-data-scroll-overflow';
interface Props extends HTMLHeroUIProps<"div">, Omit<UseDataScrollOverflowProps, "domRef"> {
/**
* Ref to the DOM node.
*/
ref?: ReactRef<HTMLElement | null>;
/**
* The shadow size in pixels.
* @default 40
*/
size?: number;
}
type UseScrollShadowProps = Props & ScrollShadowVariantProps;
declare function useScrollShadow(originalProps: UseScrollShadowProps): {
Component: _heroui_system.As<any>;
styles: string;
domRef: react.RefObject<HTMLElement>;
children: react.ReactNode;
getBaseProps: PropGetter<Record<string, unknown>, _heroui_system.DOMAttributes<_heroui_system.DOMElement>>;
};
type UseScrollShadowReturn = ReturnType<typeof useScrollShadow>;
export { UseScrollShadowProps, UseScrollShadowReturn, useScrollShadow };