import React from 'react'; import type { PickPropsWithExceptions, OtherHTMLAttributes, Renderable } from '@instructure/shared-types'; import type { ViewOwnProps } from '@instructure/ui-view/latest'; import type { LinkProps } from '@instructure/ui-link/latest'; type BreadcrumbLinkOwnProps = { /** * Content to render as the crumb, generally should be text. */ children: React.ReactNode; /** * Link the crumb should direct to; if an href is provided, the crumb will render as a link */ href?: string; /** * If the Breadcrumb.Link has an onClick prop (and no href), it will render as a button */ onClick?: (event: React.MouseEvent) => void; /** * Fires when the Link is hovered */ onMouseEnter?: (event: React.MouseEvent) => void; /** * Sets the font-size of the breadcrumb text */ size?: 'small' | 'medium' | 'large'; /** * Add an icon to the Breadcrumb.Link */ renderIcon?: Renderable; /** * Place the icon before or after the text in the Breadcrumb.Link */ iconPlacement?: 'start' | 'end'; /** * Whether the page this breadcrumb points to is the current one. If true, it sets aria-current="page". * If this prop is not set to true on any breadcrumb element, the one recieving the aria-current="page" will always be the last element, unless the last element's isCurrentPage prop is explicity set to false. */ isCurrentPage?: boolean; }; type PropKeys = keyof BreadcrumbLinkOwnProps; type AllowedPropKeys = Readonly>; type BreadcrumbLinkProps = PickPropsWithExceptions & BreadcrumbLinkOwnProps & OtherHTMLAttributes; declare const allowedProps: AllowedPropKeys; type BreadcrumbLinkState = { isTruncated: boolean; }; export type { BreadcrumbLinkProps, BreadcrumbLinkState }; export { allowedProps }; //# sourceMappingURL=props.d.ts.map