@farjs/ui
Version:
Terminal UI React.js components library
34 lines (33 loc) • 797 B
text/typescript
export default BottomMenuView;
export type BottomMenuViewProps = {
readonly width: number;
readonly items: readonly string[];
};
export type BottomMenuViewItem = {
readonly key: number;
readonly item: string;
readonly pos: number;
readonly textWidth: number;
};
/**
* @typedef {{
* readonly width: number;
* readonly items: readonly string[];
* }} BottomMenuViewProps
*/
/**
* @typedef {{
* readonly key: number;
* readonly item: string;
* readonly pos: number;
* readonly textWidth: number;
* }} BottomMenuViewItem
*/
/**
* @param {BottomMenuViewProps} props
*/
declare function BottomMenuView(props: BottomMenuViewProps): React.FunctionComponentElement<{}>;
declare namespace BottomMenuView {
let displayName: string;
}
import React from "react";