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

73 lines
2.3 KiB
Plaintext

import * as react from 'react';
import { ReactNode } from 'react';
import * as _heroui_system from '@heroui/system';
import { PropGetter, HTMLHeroUIProps } from '@heroui/system';
import { BreadcrumbItemVariantProps, SlotsToClasses, BreadcrumbItemSlots } from '@heroui/theme';
import { BreadcrumbItemProps } from '@react-types/breadcrumbs';
import { ReactRef } from '@heroui/react-utils';
interface Props extends Omit<HTMLHeroUIProps<"li">, keyof BreadcrumbItemProps>, BreadcrumbItemProps {
/**
* Ref to the DOM node.
*/
ref?: ReactRef<HTMLLIElement | null>;
/**
* The item custom separator. It is a chevron by default.
*/
separator?: ReactNode;
/**
* Whether the item is the last one.
* @default false
*/
isLast?: boolean;
/**
* Whether to hide the separator element.
* @default false
*/
hideSeparator?: boolean;
/**
* The start content of the item.
*/
startContent?: ReactNode;
/**
* The end content of the item.
*/
endContent?: ReactNode;
/**
* The breadcrumbs item classNames.
*/
classNames?: SlotsToClasses<BreadcrumbItemSlots>;
}
type UseBreadcrumbItemProps = Props & BreadcrumbItemVariantProps;
declare function useBreadcrumbItem(originalProps: UseBreadcrumbItemProps): {
Component: string;
WrapperComponent: _heroui_system.As<any>;
children: ReactNode;
separator: ReactNode;
startContent: ReactNode;
endContent: ReactNode;
isDisabled: boolean | undefined;
isCurrent: boolean;
isLast: boolean | undefined;
hideSeparator: boolean;
getBaseProps: () => {
id?: string | undefined;
'aria-label'?: string | undefined;
'aria-labelledby'?: string | undefined;
'aria-describedby'?: string | undefined;
'aria-details'?: string | undefined;
ref: react.RefObject<HTMLLIElement>;
"data-slot": string;
className: string;
};
getItemProps: PropGetter<Record<string, unknown>, _heroui_system.DOMAttributes<_heroui_system.DOMElement>>;
getSeparatorProps: () => {
"data-slot": string;
"aria-hidden": boolean | "true" | "false";
className: string;
};
};
type UseBreadcrumbItemReturn = ReturnType<typeof useBreadcrumbItem>;
export { UseBreadcrumbItemProps, UseBreadcrumbItemReturn, useBreadcrumbItem };