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

65 lines
2.4 KiB
Plaintext

/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
import {AriaLabelingProps, DOMProps, ItemProps, Key, LinkDOMProps, StyleProps} from '@react-types/shared';
import {AriaLinkProps} from '@react-types/link';
import {ReactElement, ReactNode} from 'react';
export interface BreadcrumbItemProps extends AriaLinkProps, LinkDOMProps {
/** Whether the breadcrumb item represents the current page. */
isCurrent?: boolean,
/**
* The type of current location the breadcrumb item represents, if `isCurrent` is true.
* @default 'page'
*/
'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | boolean | 'true' | 'false',
/** Whether the breadcrumb item is disabled. */
isDisabled?: boolean,
/** The contents of the breadcrumb item. */
children: ReactNode
}
export interface AriaBreadcrumbItemProps extends BreadcrumbItemProps, DOMProps {
/**
* The HTML element used to render the breadcrumb link, e.g. 'a', or 'span'.
* @default 'a'
*/
elementType?: string
}
export interface BreadcrumbsProps {}
export interface AriaBreadcrumbsProps extends BreadcrumbsProps, DOMProps, AriaLabelingProps {}
export interface SpectrumBreadcrumbsProps<T> extends AriaBreadcrumbsProps, StyleProps {
/** The breadcrumb items. */
children: ReactElement<ItemProps<T>> | ReactElement<ItemProps<T>>[],
/** Whether the Breadcrumbs are disabled. */
isDisabled?: boolean,
/** Called when an item is acted upon (usually selection via press). */
onAction?: (key: Key) => void,
/**
* Size of the Breadcrumbs including spacing and layout.
* @default 'L'
*/
size?: 'S' | 'M' | 'L',
/** Whether to always show the root item if the items are collapsed. */
showRoot?: boolean,
/**
* Whether to place the last Breadcrumb item onto a new line.
*/
isMultiline?: boolean,
/**
* Whether to autoFocus the last Breadcrumb item when the Breadcrumbs render.
*/
autoFocusCurrent?: boolean
}