react-ui89
Version:
A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.
21 lines (20 loc) • 715 B
TypeScript
import React from "react";
import "./Ui89Tabs.css";
import "../style/typo.css";
import "../style/theme.css";
import { Ui89Palette, Ui89Theme } from "../theme";
export interface Ui89TabsPropsOption {
value: string | number;
label: React.ReactNode;
}
export interface Ui89TabsProps {
theme?: Ui89Theme | keyof typeof Ui89Theme | Ui89Palette | keyof typeof Ui89Palette;
selected?: any;
onChange?: (value: string | number) => void;
options?: Ui89TabsPropsOption[];
/**
* Stretch options such that they evenly take up the entire width.
*/
stretch?: boolean;
}
export declare function Ui89Tabs({ theme, selected, onChange, options, stretch, }: Ui89TabsProps): React.JSX.Element;