@tomino/dynamic-form-semantic-ui
Version:
Semantic UI form renderer based on dynamic form generation
40 lines (39 loc) • 1.21 kB
TypeScript
import * as React from 'react';
import { SemanticCOLORS, SemanticWIDTHS, MenuItemProps as MenuItemSui } from 'semantic-ui-react';
import { FormComponentProps } from '@tomino/dynamic-form';
export declare type MenuProps = {
attached: 'top' | 'bottom';
borderless: boolean;
className: string;
color: SemanticCOLORS;
compact: boolean;
defaultActiveIndex: number;
defaultActive: string;
fixed: 'left' | 'right' | 'bottom' | 'top';
floated: boolean | 'right';
fluid: boolean;
icon: boolean | 'labeled';
inverted: boolean;
pagination: boolean;
pointing: boolean;
secondary: boolean;
size: 'mini' | 'tiny' | 'small' | 'large' | 'huge' | 'massive';
stackable: boolean;
tabular: boolean | 'right';
text: boolean;
vertical: boolean;
widths: SemanticWIDTHS;
subMenu: boolean;
};
export declare type MenuChildProps = {
name: string;
customItem: boolean;
};
declare type MenuItemProps = MenuItemSui & {
onClick: string;
};
export declare const MenuItem: React.FC<FormComponentProps<MenuItemProps>>;
export declare const MenuView: React.FC<FormComponentProps<MenuProps, MenuChildProps> & {
EmptyCell?: any;
}>;
export {};