UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

32 lines (31 loc) 815 B
import { CSSProperties } from 'glamor'; import { ApphouseComponent } from './component.interfaces'; export interface BreadcrumbsStyles { container?: CSSProperties; crumb?: CSSProperties; link?: CSSProperties; chevron?: CSSProperties; } /** * Interface for one breadcrumb item */ export interface ICrumb { id: string; title: string; onClick: () => void; } export interface BreadcrumbsProps extends ApphouseComponent<BreadcrumbsStyles> { /** * The crumbs to display */ crumbs: ICrumb[]; /** * Must be one of the crumb ids */ current: string; } /** * A minimalistic breadcrumbs component that can be used to * display a trail of links */ export declare const Breadcrumbs: (props: BreadcrumbsProps) => import("react/jsx-runtime").JSX.Element | null;