@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
16 lines (15 loc) • 644 B
TypeScript
import React from 'react';
import { LinkProps } from '../Link';
export interface BreadcrumbItem {
/** The URL that this Breadcrumbs should navigate to when clicked */
href: string;
/** The text that should be displayed on this particular Breadcrumb */
text: string;
}
export interface BreadcrumbProps extends Pick<LinkProps, 'as'> {
/** A list of `BreadcrumbsItem` objects ( `{href,text}` ) that will construct the Breadcrumb */
items: BreadcrumbItem[];
}
/** Breadcrumb is a way to navigate back to where you came from within the app */
declare const Breadcrumbs: React.FC<BreadcrumbProps>;
export default Breadcrumbs;