Skip to content
Edited and deleted states, light
Light
Edited and deleted states, dark
Dark

Every state

  • Edited and deleted states, default, light
    Edited and deleted states, default, dark

    default

  • Edited and deleted states, hover, light
    Edited and deleted states, hover, dark

    hover

  • Edited and deleted states, focus, light
    Edited and deleted states, focus, dark

    focus

  • Edited and deleted states, edit-history, light
    Edited and deleted states, edit-history, dark

    edit-history

  • Edited and deleted states, editing, light
    Edited and deleted states, editing, dark

    editing

  • Edited and deleted states, confirm-delete, light
    Edited and deleted states, confirm-delete, dark

    confirm-delete

  • Edited and deleted states, deleted, light
    Edited and deleted states, deleted, dark

    deleted

Props

PropTypeDefaultWhat it does
idstring"comments-wg17"Id of the thread; the parts hang off it.
labelstring"Comments on WG-17"Accessible name of the thread.
mestring"joris"Your id: your comments can be edited and deleted.
commentsCommentEditedDeletedComment[][ { id: "e1", author: { id: "tomasz", name: "Tomasz Nowak", photo: photo("tomasz") }, at: "2026-11-27T08:42:00Z", bod…Comments.
onEdit(id: string, body: string) => void–Called with the comment's id and its new text after an edit is saved.
onDelete(id: string) => void–Called with the comment's id after it is deleted.
nowstring | nullnullISO date-time to stamp edits and deletes with, for demos and shots. Null: the moment of the click.
localestring"en-GB"Locale for numbers and dates.
timeZonestring"Europe/Amsterdam"IANA time zone the times are in.
labels{ edited: string editedAt: string previous: string deleted: string edit: string delete: string save: string cancel: string confirm: string editLabel: string editedStatus: string deletedStatus: string }{ edited: "Edited", editedAt: "Edited on", previous: "Before the edit", deleted: "This comment was deleted", edit: "E…Labels.
classNamestring–Extra classes on the outer element.

More comments

All 6
comment-03 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans