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

29 lines
1006 B
Plaintext

import { ItemProps } from '@heroui/aria-utils';
import { ReactNode, RefObject } from 'react';
interface Props<T extends object = {}> extends Omit<ItemProps<"button", T>, "children" | "title"> {
/**
* The content of the component.
*/
children?: ReactNode;
/**
* The title of the component.
*/
title?: ReactNode;
/**
* A string representation of the item's contents. Use this when the title is not readable.
* This will be used as native `title` attribute.
* */
titleValue?: string;
/** Whether the tab should be disabled. */
isDisabled?: boolean;
/** Whether the tab selection should occur on press up instead of press down. */
shouldSelectOnPressUp?: boolean;
/** A ref to the tab item. */
tabRef?: RefObject<HTMLButtonElement>;
}
type TabItemProps<T extends object = {}> = Props<T>;
declare const TabItemBase: <T extends object>(props: TabItemProps<T>) => JSX.Element;
export { TabItemProps, TabItemBase as default };