API reference
Apps
State and actions of the six apps. Each one takes an optional provider to connect your backend.
Pass { provider } to replace the mock. The Apps section explains each app.
useEmail()
Folders, labels, conversations, the reading pane and every action of the email app.
useEmail(options: UseEmailOptions = {}): { me: EmailSender; folders: EmailFolderConfig[]; folderId: any; labelId: any; quickFilter: any; search: any; selected: any; activeId: any; isReading: any; view: any; ... 17 more .…mefoldersfolderIdlabelIdquickFiltersearchselectedactiveIdisReadingviewconversationscontactsactiveThreadactiveIndexcountsallSelectedselectFolderselectLabelopenclosesteptoggleStartoggleAllmoveTomarkReadsendsaveDraftreplyuseEmailLabels()
Translated folder and label names.
useEmailLabels(): { labels: any; labelOf: (id: string) => any; folderTitle: (id: string) => any; }labelslabelOffolderTitleuseChat()
Threads, messages, pins, reactions, replies and simulated typing of the chat.
useChat(options: UseChatOptions = {}): { filter: any; search: any; visibleThreads: any; activeThread: any; activeMessages: any; shared: any; newCount: any; isTyping: any; authorOf: (message: ChatMessage) => any; findMe…filtersearchvisibleThreadsactiveThreadactiveMessagessharednewCountisTypingauthorOffindMessageopenThreadtoggleMutetogglePintoggleReactionsendMessageuseCalendar()
View, dates, events by day, quick add and CRUD of the calendar.
useCalendar(options: UseCalendarOptions = {}): { anchor: any; today: any; view: any; enabled: any; counts: any; month: any; week: any; selectedDay: any; nextDay: any; weekdayLabels: any; agenda: any; title: any; step: (directi…anchortodayviewenabledcountsmonthweekselectedDaynextDayweekdayLabelsagendatitlestepgoTodaygoTosaveduplicateremovequickAdduseCalendarLabels()
Calendars with their translated names.
useCalendarLabels(): { calendars: any; calendarOf: (id: CalendarId) => any; }calendarscalendarOfplaceEvents()
Lays overlapping events side by side in the week and day grids.
placeEvents(events: CalendarEvent[]): CalendarPlacedEvent[]
calendarColor()
The colour of a calendar.
calendarColor(id: CalendarId): string
isMultiDay()
Whether an event spans several days.
isMultiDay(event: CalendarEvent): boolean
toMinutes()
Turns HH:MM into minutes.
toMinutes(time: string): number
toTime()
Turns minutes into HH:MM.
toTime(minutes: number): string
useKanban()
Board, columns, filters, moves with WIP limits, checklists, comments and CRUD of the kanban.
useKanban(options: UseKanbanOptions = {}): { board: any; today: any; view: any; search: any; labels: any; assignees: any; dueSoon: any; collapsed: any; hasFilters: any; columns: any; visibleCards: any; progress: any; team:…boardtodayviewsearchlabelsassigneesdueSooncollapsedhasFilterscolumnsvisibleCardsprogressteamfinddueStatedueLabelclearFilterscanReceivemovemoveByreordermoveManyquickAddsaveduplicateremoveremoveManytoggleChecklistItemaddChecklistItemremoveChecklistItemaddCommentsaveColumnremoveColumnsortColumnByDuetoggleCollapseduseKanbanLabels()
Translated labels, priorities and column titles.
useKanbanLabels(): { labels: any; priorities: any; labelOf: (id: KanbanLabelId) => any; priorityOf: (id?: KanbanPriority) => any; columnTitle: (column: KanbanColumn) => any; }labelsprioritieslabelOfpriorityOfcolumnTitleprovideKanbanDrag()
Provides drag and drop (mouse and touch) to the board; the callback receives the card and the drop target.
provideKanbanDrag(onDrop: (cardId: string, target: KanbanDropTarget) => void): KanbanDrag
useKanbanDrag()
Used by columns and cards to join the drag and drop of the board.
useKanbanDrag(): any
useTodo()
Lists, tags, grouping, quick add, subtasks, trash and every action of the tasks app.
useTodo(options: UseTodoOptions = {}): { today: any; filter: any; tags: any; search: any; sort: any; groupBy: any; counts: any; tagCounts: any; progress: any; groups: any; active: any; pickedId: any; find: (id: string)…todayfiltertagssearchsortgroupBycountstagCountsprogressgroupsactivepickedIdfindparsequickAddupdatetoggleTagtoggleDonetoggleImportantsetTrasheddeleteForeveremptyTrashmoveOverdueToTodayaddSubtasktoggleSubtaskremoveSubtaskselectstepuseTodoLabels()
Translated tags.
useTodoLabels(): { tags: any; tagOf: (id: TodoTagId) => any; }tagstagOfuseFileManager()
Sections, folders, files, filters, sort, selection, uploads, trash and storage of the file manager.
useFileManager(options: UseFileManagerOptions = {}): { state: any; section: any; folderId: any; view: any; search: any; kind: any; sort: any; selected: any; pickedId: any; uploads: any; storage: any; path: any; counts: any; rootFold…statesectionfolderIdviewsearchkindsortselectedpickedIduploadsstoragepathcountsrootFoldersfoldersfilesrecentactiveactiveFolderPathfindselectSectionopenFoldertoggleSelectedclearSelectionopentoggleStarrenamesetTrasheddeleteForeveremptyTrashmovecreateFolderrenameFolderremoveFolderuploadclearUploadsuseFileKind()
The kind and colour of a file from its name.
useFileKind(): { kindOf: (name: string) => FileKind; colorOf: (kind: FileKind) => string; }kindOfcolorOf