react-ui89
Version:
A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.
25 lines (24 loc) • 877 B
TypeScript
import React from "react";
import "./Ui89Breadcrumbs.css";
import "../style/typo.css";
import "../style/reset.css";
import "../style/chosen-theme.css";
import { Ui89Theme } from "../theme";
export type Ui89BreadcrumbsPropsOnSelect = (e: {
item: Ui89BreadcrumbsPropsItem;
}) => void | Promise<void>;
export interface Ui89BreadcrumbsPropsItem {
label: React.ReactNode;
url?: string;
}
export interface Ui89BreadcrumbsProps {
theme?: Ui89Theme | keyof typeof Ui89Theme;
items: Ui89BreadcrumbsPropsItem[];
onSelect?: Ui89BreadcrumbsPropsOnSelect;
}
export declare function Ui89BreadcrumbsItem({ index, item, onSelect, }: {
index: number;
item: Ui89BreadcrumbsPropsItem;
onSelect?: Ui89BreadcrumbsPropsOnSelect;
}): React.JSX.Element;
export declare function Ui89Breadcrumbs({ theme, items, onSelect, }: Ui89BreadcrumbsProps): React.JSX.Element;