Comment
Loading example…
Annotation callout on a document: bold author, optional counter, body.
Import
Section titled “Import”import { Comment } from "@jcsoftdev/ui/containers";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/containers/comment.
<Comment tone="pending" author="Camila Rojas" label="Nota de Camila Rojas"> El cliente pidió degradado alto y no usar navaja en la nuca.</Comment>| Prop | Type | Default | Description |
|---|---|---|---|
tone |
"pending" | "reply" |
"pending" |
|
author * |
string |
Name of the commenter. | |
label * |
string |
Accessible name of the note (role=note takes no name from content). |
|
number |
number |
Optional counter shown before the author. | |
children |
ReactNode |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/containers/comment/comment.tsx