Component libraryTask detail
Task detail
ProInspect and edit consumer-owned task status, assignment, due date, checklist, and activity in one controlled block.
npx shadcn@latest add @tidal-pro/task-detailInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/task-detail.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Requires a controlled task value, unique enabled status and optional assignee values, controlled editing state, and value/edit callbacks. View mode presents supplied status, assignment, exact date, checklist and optional consumer activity. Edit mode uses a native form with named controlled title, description, status, assignee, due-date and checklist fields plus a persistent taskId mirror; form action/method and submitter overrides remain native. Field and action handlers run caller-first and honor prevention. Disabled, busy or structurally invalid forms block direct native submission. Native disabled and aria-disabled action states block higher callbacks while explicit false is preserved. Consumer errors link to their fields and form, numeric ReactNode checklist/error/activity content is preserved, and h2-h5 roots yield one subordinate heading level. Synchronously accepted edit, cancel or save transitions use bounded source-aware focus recovery without stealing unrelated focus. Refs support React 19 cleanup. RTL, 180/320/390 widths, long content, 44px actions, 16px narrow fields, forced colors and reduced motion are supported. Consumers own persistence, activity, authorization, notifications and side effects; the component sends no request and stores nothing.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.