aspire-react-data-table
Version:
A simple to use declarative react based data table
20 lines (19 loc) • 473 B
TypeScript
import React from 'react';
import { IconType } from 'react-icons';
interface Position {
x: number;
y: number;
}
interface Action<T> {
name: string;
icon: IconType;
onClick: (rowData: T) => void;
}
interface ActionsBoxProps<T> {
position: Position;
theme?: any;
actions: Action<T>[];
rowData: T;
}
declare const ActionsMenu: <T>({ position, theme, actions, rowData }: ActionsBoxProps<T>) => React.JSX.Element;
export default ActionsMenu;