UNPKG

react-ui89

Version:

A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.

19 lines (18 loc) 742 B
import React from "react"; import "./Ui89Breadcrumbs.css"; import "../style/typo.css"; import "../style/reset.css"; import "../style/theme.css"; import { Ui89Palette, Ui89Theme } from "../theme"; export interface Ui89BreadcrumbsPropsItem { label?: React.ReactNode; url?: string; } export interface Ui89BreadcrumbsProps<T> { theme?: Ui89Theme | keyof typeof Ui89Theme | Ui89Palette | keyof typeof Ui89Palette; items: T[]; getLabel?: (item: T) => React.ReactNode; getUrl?: (item: T) => string | undefined; onSelect?: (item: T) => void | Promise<void>; } export declare function Ui89Breadcrumbs<T = Ui89BreadcrumbsPropsItem>({ theme, items, getLabel, getUrl, onSelect, }: Ui89BreadcrumbsProps<T>): React.JSX.Element;