TidalUI

Task detail preview

Inspect and edit consumer-owned task status, assignment, due date, checklist, and activity in one controlled block.

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/task-detail

Import components/ui/tidal.css, components/ui/task-detail.css. Wrap installed components in tidal-scope.

Preview

Task detail component preview

Open interactive preview

Minimal example

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

API and props

TidalTaskDetail.assignees (required)
ReadonlyArray<TidalTaskDetailOption>

Required assignees value accepted by this exported component.

TidalTaskDetail.editing (required)
boolean

Required editing value accepted by this exported component.

TidalTaskDetail.onEditingChange (required)
(editing: boolean, event: MouseEvent<HTMLButtonElement>) => void

Callback invoked when the editing change interaction is proposed.

TidalTaskDetail.onValueChange (required)
(value: TidalTaskDetailValue, event: TidalTaskDetailChangeEvent) => void

Callback invoked when the value change interaction is proposed.

TidalTaskDetail.statuses (required)
ReadonlyArray<TidalTaskDetailOption>

Required statuses value accepted by this exported component.

TidalTaskDetail.value (required)
TidalTaskDetailValue

Required value value accepted by this exported component.

TidalTaskDetail.activity
ReactNode

Optional activity value accepted by this exported component.

TidalTaskDetail.assigneeRequired
boolean | undefined

Optional assignee required value accepted by this exported component.

TidalTaskDetail.assigneeSelectProps
OwnedSelectProps | undefined

Optional assignee select props value accepted by this exported component.

TidalTaskDetail.assigneeSelectRef
Ref<HTMLSelectElement> | undefined

Optional assignee select ref value accepted by this exported component.

TidalTaskDetail.busy
boolean | undefined

Optional busy value accepted by this exported component.

TidalTaskDetail.cancelButtonProps
OwnedActionProps | undefined

Optional cancel button props value accepted by this exported component.

TidalTaskDetail.cancelButtonRef
Ref<HTMLButtonElement> | undefined

Optional cancel button ref value accepted by this exported component.

TidalTaskDetail.descriptionProps
OwnedTextareaProps | undefined

Optional description props value accepted by this exported component.

TidalTaskDetail.descriptionRef
Ref<HTMLTextAreaElement> | undefined

Optional description ref value accepted by this exported component.

TidalTaskDetail.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalTaskDetail.dueDateDisplay
ReactNode

Optional due date display value accepted by this exported component.

TidalTaskDetail.dueDateInputProps
OwnedInputProps | undefined

Optional due date input props value accepted by this exported component.

TidalTaskDetail.dueDateInputRef
Ref<HTMLInputElement> | undefined

Optional due date input ref value accepted by this exported component.

TidalTaskDetail.editButtonProps
OwnedActionProps | undefined

Optional edit button props value accepted by this exported component.

TidalTaskDetail.editButtonRef
Ref<HTMLButtonElement> | undefined

Optional edit button ref value accepted by this exported component.

TidalTaskDetail.errors
Partial<{ title: ReactNode; description: ReactNode; status: ReactNode; assignee: ReactNode; dueDate: ReactNode; checklist: ReactNode; form: ReactNode; }> | undefined

Optional errors value accepted by this exported component.

TidalTaskDetail.formProps
Omit<FormHTMLAttributes<HTMLFormElement>, "aria-disabled" | "children" | "dangerouslySetInnerHTML"> | undefined

Optional form props value accepted by this exported component.

TidalTaskDetail.formRef
Ref<HTMLFormElement> | undefined

Optional form ref value accepted by this exported component.

TidalTaskDetail.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalTaskDetail.labels
Partial<{ task: string; edit: string; save: string; saving: string; cancel: string; title: string; description: string; status: string; assignee: string; unassigned: string; dueDate: string; noDueDate: string; checklist: string; activity: string; completed: string; invalid: string; }> | undefined

Optional labels value accepted by this exported component.

TidalTaskDetail.onCancel
((event: MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the cancel interaction is proposed.

TidalTaskDetail.onSave
((event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the save interaction is proposed.

TidalTaskDetail.saveButtonProps
OwnedActionProps | undefined

Optional save button props value accepted by this exported component.

TidalTaskDetail.saveButtonRef
Ref<HTMLButtonElement> | undefined

Optional save button ref value accepted by this exported component.

TidalTaskDetail.statusSelectProps
OwnedSelectProps | undefined

Optional status select props value accepted by this exported component.

TidalTaskDetail.statusSelectRef
Ref<HTMLSelectElement> | undefined

Optional status select ref value accepted by this exported component.

TidalTaskDetail.titleInputProps
OwnedInputProps | undefined

Optional title input props value accepted by this exported component.

TidalTaskDetail.titleInputRef
Ref<HTMLInputElement> | undefined

Optional title input ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas