UNPKG

@lunalytics/ui

Version:

React based component library created to be used in Lunalytics

17 lines (16 loc) 536 B
import { GlobalColors, GlobalVariants } from '../global.types'; export interface ContextItemProps { id: string; text: string; icon?: React.ReactNode; type: 'item' | 'submenu' | 'separator'; options?: ContextItemProps[]; } export interface ContextProps extends React.HTMLAttributes<HTMLDivElement> { children: React.ReactNode; items: ContextItemProps[]; text: string; position?: 'top' | 'bottom' | 'left' | 'right'; align?: 'start' | 'center' | 'end'; color?: GlobalColors | GlobalVariants; }