@nodeject/ui-components
Version:
UI library for non-trivial components
12 lines (11 loc) • 404 B
TypeScript
import * as React from 'react';
import { TodoItem } from './';
export interface TodoListProps {
header?: React.ReactNode;
todoItemList: TodoItem[];
addTodoItem: (title: string) => void;
deleteTodoItem: (id: string) => void;
renameTodoItem: (id: string, title: string) => void;
toggleTodo: (id: string) => void;
}
export declare const TodoList: React.FC<TodoListProps>;