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

36 lines
1.1 KiB
Plaintext

import * as _heroui_system_rsc from '@heroui/system-rsc';
import { HTMLHeroUIProps, PropGetter } from '@heroui/system-rsc';
import { SpacerVariantProps } from '@heroui/theme';
import { ReactRef } from '@heroui/react-utils';
import { Space } from './utils.js';
interface Props extends HTMLHeroUIProps<"span"> {
/**
* Ref to the DOM node.
*/
ref?: ReactRef<HTMLElement | null>;
/**
* The x-axis margin.
* @default 1
*
* @see https://tailwindcss.com/docs/customizing-spacing#default-spacing-scale
*/
x?: Space;
/**
* The y-axis margin.
* @default 1
*
* @see https://tailwindcss.com/docs/customizing-spacing#default-spacing-scale
*/
y?: Space;
}
type UseSpacerProps = Props & SpacerVariantProps;
declare const getMargin: (value: Space) => string;
declare function useSpacer(originalProps: UseSpacerProps): {
Component: _heroui_system_rsc.As<any>;
getSpacerProps: PropGetter;
};
type UseSpacerReturn = ReturnType<typeof useSpacer>;
export { type UseSpacerProps, type UseSpacerReturn, getMargin, useSpacer };