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.

composables/apps/useEmail.ts
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 .…
ReturnsmefoldersfolderIdlabelIdquickFiltersearchselectedactiveIdisReadingviewconversationscontactsactiveThreadactiveIndexcountsallSelectedselectFolderselectLabelopenclosesteptoggleStartoggleAllmoveTomarkReadsendsaveDraftreply

useEmailLabels()

Translated folder and label names.

composables/apps/useEmail.ts
useEmailLabels(): { labels: any; labelOf: (id: string) => any; folderTitle: (id: string) => any; }
ReturnslabelslabelOffolderTitle

useChat()

Threads, messages, pins, reactions, replies and simulated typing of the chat.

composables/apps/useChat.ts
useChat(options: UseChatOptions = {}): { filter: any; search: any; visibleThreads: any; activeThread: any; activeMessages: any; shared: any; newCount: any; isTyping: any; authorOf: (message: ChatMessage) => any; findMe…
ReturnsfiltersearchvisibleThreadsactiveThreadactiveMessagessharednewCountisTypingauthorOffindMessageopenThreadtoggleMutetogglePintoggleReactionsendMessage

useCalendar()

View, dates, events by day, quick add and CRUD of the calendar.

composables/apps/useCalendar.ts
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…
ReturnsanchortodayviewenabledcountsmonthweekselectedDaynextDayweekdayLabelsagendatitlestepgoTodaygoTosaveduplicateremovequickAdd

useCalendarLabels()

Calendars with their translated names.

composables/apps/useCalendar.ts
useCalendarLabels(): { calendars: any; calendarOf: (id: CalendarId) => any; }
ReturnscalendarscalendarOf

placeEvents()

Lays overlapping events side by side in the week and day grids.

composables/apps/useCalendar.ts
placeEvents(events: CalendarEvent[]): CalendarPlacedEvent[]

calendarColor()

The colour of a calendar.

composables/apps/useCalendar.ts
calendarColor(id: CalendarId): string

isMultiDay()

Whether an event spans several days.

composables/apps/useCalendar.ts
isMultiDay(event: CalendarEvent): boolean

toMinutes()

Turns HH:MM into minutes.

composables/apps/useCalendar.ts
toMinutes(time: string): number

toTime()

Turns minutes into HH:MM.

composables/apps/useCalendar.ts
toTime(minutes: number): string

useKanban()

Board, columns, filters, moves with WIP limits, checklists, comments and CRUD of the kanban.

composables/apps/useKanban.ts
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:…
ReturnsboardtodayviewsearchlabelsassigneesdueSooncollapsedhasFilterscolumnsvisibleCardsprogressteamfinddueStatedueLabelclearFilterscanReceivemovemoveByreordermoveManyquickAddsaveduplicateremoveremoveManytoggleChecklistItemaddChecklistItemremoveChecklistItemaddCommentsaveColumnremoveColumnsortColumnByDuetoggleCollapsed

useKanbanLabels()

Translated labels, priorities and column titles.

composables/apps/useKanban.ts
useKanbanLabels(): { labels: any; priorities: any; labelOf: (id: KanbanLabelId) => any; priorityOf: (id?: KanbanPriority) => any; columnTitle: (column: KanbanColumn) => any; }
ReturnslabelsprioritieslabelOfpriorityOfcolumnTitle

provideKanbanDrag()

Provides drag and drop (mouse and touch) to the board; the callback receives the card and the drop target.

composables/apps/useKanbanDrag.ts
provideKanbanDrag(onDrop: (cardId: string, target: KanbanDropTarget) => void): KanbanDrag

useKanbanDrag()

Used by columns and cards to join the drag and drop of the board.

composables/apps/useKanbanDrag.ts
useKanbanDrag(): any

useTodo()

Lists, tags, grouping, quick add, subtasks, trash and every action of the tasks app.

composables/apps/useTodo.ts
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)…
ReturnstodayfiltertagssearchsortgroupBycountstagCountsprogressgroupsactivepickedIdfindparsequickAddupdatetoggleTagtoggleDonetoggleImportantsetTrasheddeleteForeveremptyTrashmoveOverdueToTodayaddSubtasktoggleSubtaskremoveSubtaskselectstep

useTodoLabels()

Translated tags.

composables/apps/useTodo.ts
useTodoLabels(): { tags: any; tagOf: (id: TodoTagId) => any; }
ReturnstagstagOf

useFileManager()

Sections, folders, files, filters, sort, selection, uploads, trash and storage of the file manager.

composables/apps/useFileManager.ts
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…
ReturnsstatesectionfolderIdviewsearchkindsortselectedpickedIduploadsstoragepathcountsrootFoldersfoldersfilesrecentactiveactiveFolderPathfindselectSectionopenFoldertoggleSelectedclearSelectionopentoggleStarrenamesetTrasheddeleteForeveremptyTrashmovecreateFolderrenameFolderremoveFolderuploadclearUploads

useFileKind()

The kind and colour of a file from its name.

composables/apps/useFileManager.ts
useFileKind(): { kindOf: (name: string) => FileKind; colorOf: (kind: FileKind) => string; }
ReturnskindOfcolorOf
© 2026 melsami UI.
Developer documentation for melsami UI.