TidalUI

Support inbox preview

A controlled two-pane support inbox with ticket search, status filtering, selected conversation and reply composer surfaces.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/support-inbox

Import components/ui/tidal.css, components/ui/support-inbox.css. Wrap installed components in tidal-scope.

Preview

Support inbox component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/support-inbox.css";
import{TidalSupportInbox}from"./components/ui/support-inbox";
export default(p:Parameters<typeof TidalSupportInbox>[0])=><div className="tidal-scope"><TidalSupportInbox {...p}/></div>;

API and props

TidalSupportInbox.draftValue (required)
string

Required draft value value accepted by this exported component.

TidalSupportInbox.onDraftValueChange (required)
(value: string, event: ChangeEvent<HTMLTextAreaElement>) => void

Callback invoked when the draft value change interaction is proposed.

TidalSupportInbox.onSearchValueChange (required)
(value: string, event: ChangeEvent<HTMLInputElement>) => void

Callback invoked when the search value change interaction is proposed.

TidalSupportInbox.onStatusFilterChange (required)
(value: string, event: ChangeEvent<HTMLSelectElement>) => void

Callback invoked when the status filter change interaction is proposed.

TidalSupportInbox.onTicketSelect (required)
(ticket: TidalSupportTicket, event: ReactMouseEvent<HTMLButtonElement>) => void

Callback invoked when the ticket select interaction is proposed.

TidalSupportInbox.searchValue (required)
string

Required search value value accepted by this exported component.

TidalSupportInbox.statusFilterValue (required)
string

Required status filter value value accepted by this exported component.

TidalSupportInbox.statusOptions (required)
ReadonlyArray<TidalSupportStatusOption>

Required status options value accepted by this exported component.

TidalSupportInbox.tickets (required)
ReadonlyArray<TidalSupportTicket>

Required tickets value accepted by this exported component.

TidalSupportInbox.title (required)
ReactNode

Required title value accepted by this exported component.

TidalSupportInbox.actionsLabel
string | undefined

Optional actions label value accepted by this exported component.

TidalSupportInbox.composerLabel
string | undefined

Optional composer label value accepted by this exported component.

TidalSupportInbox.composerPlaceholder
string | undefined

Optional composer placeholder value accepted by this exported component.

TidalSupportInbox.conversationActions
ReadonlyArray<TidalSupportAction> | undefined

Optional conversation actions value accepted by this exported component.

TidalSupportInbox.conversationHeadingLevel
"h3" | "h4" | "h5" | undefined

Optional conversation heading level value accepted by this exported component.

TidalSupportInbox.description
ReactNode

Optional description value accepted by this exported component.

TidalSupportInbox.emptyConversationMessage
ReactNode

Optional empty conversation message value accepted by this exported component.

TidalSupportInbox.emptyMessagesMessage
ReactNode

Optional empty messages message value accepted by this exported component.

TidalSupportInbox.emptyTicketsMessage
ReactNode

Optional empty tickets message value accepted by this exported component.

TidalSupportInbox.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalSupportInbox.footer
ReactNode

Optional footer value accepted by this exported component.

TidalSupportInbox.formProps
Omit<FormHTMLAttributes<HTMLFormElement>, "children"> | undefined

Optional form props value accepted by this exported component.

TidalSupportInbox.formRef
Ref<HTMLFormElement> | undefined

Optional form ref value accepted by this exported component.

TidalSupportInbox.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalSupportInbox.messagesLabel
string | undefined

Optional messages label value accepted by this exported component.

TidalSupportInbox.onReplySubmit
((ticket: TidalSupportTicket, event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the reply submit interaction is proposed.

TidalSupportInbox.replyDisabled
boolean | undefined

Optional reply disabled value accepted by this exported component.

TidalSupportInbox.searchInputProps
Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value"> | undefined

Optional search input props value accepted by this exported component.

TidalSupportInbox.searchInputRef
Ref<HTMLInputElement> | undefined

Optional search input ref value accepted by this exported component.

TidalSupportInbox.searchLabel
string | undefined

Optional search label value accepted by this exported component.

TidalSupportInbox.selectedTicketId
string | undefined

Optional selected ticket id value accepted by this exported component.

TidalSupportInbox.statusFilterLabel
string | undefined

Optional status filter label value accepted by this exported component.

TidalSupportInbox.statusSelectProps
Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "children"> | undefined

Optional status select props value accepted by this exported component.

TidalSupportInbox.statusSelectRef
Ref<HTMLSelectElement> | undefined

Optional status select ref value accepted by this exported component.

TidalSupportInbox.submitButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> | undefined

Optional submit button props value accepted by this exported component.

TidalSupportInbox.submitButtonRef
Ref<HTMLButtonElement> | undefined

Optional submit button ref value accepted by this exported component.

TidalSupportInbox.submitLabel
ReactNode

Optional submit label value accepted by this exported component.

TidalSupportInbox.textareaProps
Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> | undefined

Optional textarea props value accepted by this exported component.

TidalSupportInbox.textareaRef
Ref<HTMLTextAreaElement> | undefined

Optional textarea ref value accepted by this exported component.

TidalSupportInbox.ticketsLabel
string | undefined

Optional tickets label value accepted by this exported component.

TidalSupportInbox.unreadLabel
((count: number, ticket: TidalSupportTicket) => string) | undefined

Optional unread label value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas