UNPKG

@useloops/design-system

Version:

The official React based Loops design system

20 lines (17 loc) 460 B
import { FunctionComponent } from 'react'; import { LinkProps } from '../Link/Link.js'; type BreadcrumbLink = { label: string; } & ({ href?: LinkProps['href']; onClick?: never; } | { href?: never; onClick?: LinkProps['onClick']; }); interface BreadcrumbProps { links?: BreadcrumbLink[]; } declare const Breadcrumb: FunctionComponent<BreadcrumbProps>; export { Breadcrumb as default }; export type { BreadcrumbLink, BreadcrumbProps };