Files
NapCatQQ/.pnpm-store/v3/files/17/c2683888e905e63740bf754196b90f2e1c7c1e81af01ed7e4497687c76737d438eb1fc5a61c5d732e8f7276ff69d81125fb0268e4952712f71f4cd6778f6c9
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

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.mjs';
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 };