Patterns

Change notes (threaded)

Notes with tags, the pinned decision on top, replies nested and folded after one level. Reply works.

  • KA
    Karim AhmedOwnerDecision
    We publish v7 today at ৳70. Monthly parkers keep their price until their next bill on the 25th.
    • NJ
      Nusrat JahanManager
      Noted. I'll brief the attendants at the 2 pm shift change.
  • TS
    Tania SultanaAccountantQuestion
    Does the daily cap change for motorcycles too, or only cars?
    • KA
      Karim AhmedOwner
      Only cars. Bikes stay at ৳150.
  • SI
    Shahidul IslamSupervisorChange request
    Can we add a 30-minute rate for the Banani lunch rush?

Import#

Everything comes from the package root. The example above uses:

your-component.tsx
import { ChangeNotes, type NoteThread } from "@waveinno/ui";

Props#

Read from the source of this version, so they match the code exactly.

<ChangeNotes>

src/components/patterns/timeline.tsx
PropTypeDefaultDescription
notesrequiredNoteThread[]—
onReply(parentId: string, text: string) => void—
labelsPartial<{ reply: string; replies: (n: number) => string; hide: string; placeholder: string; send: string }>—
classNamestring—

Install#

If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.

$ npm install @waveinno/ui