Cards

Annotation card components and card subparts.

Overview

Document.Annotation.Sidebar.Card renders one annotation and provides card context to its subcomponents. The default card includes author metadata, editable annotation text, and hover actions.

Usage

<Document.Annotation.Sidebar.Card annotation={annotation} />
<Document.Annotation.Sidebar.Card annotation={annotation}>
  <Document.Annotation.Sidebar.Card.Header />
  <Document.Annotation.Sidebar.Card.Citation />
  <Document.Annotation.Sidebar.Card.Textarea />
  <Document.Annotation.Sidebar.Card.Footer>
    <Document.Annotation.Sidebar.Card.Timestamp />
  </Document.Annotation.Sidebar.Card.Footer>
</Document.Annotation.Sidebar.Card>

Examples

Default

Active

Subcomponents

Document.Annotation.Sidebar.Card.Header

Displays the annotation author. If the author name is Mobius, the Mobius mark is shown instead of an avatar.

PropTypeDescription
classNamestringAdditional classes

Document.Annotation.Sidebar.Card.Textarea

Inline editable annotation text.

PropTypeDescription
classNamestringAdditional classes
placeholderstringPlaceholder text

Document.Annotation.Sidebar.Card.Citation

Displays the cited document text.

PropTypeDescription
classNamestringAdditional classes
childrenReactNodeCustom citation content

Document.Annotation.Sidebar.Card.Menu

Hover actions for editing or deleting an annotation.

PropTypeDescription
classNamestringAdditional classes

Document.Annotation.Sidebar.Card.Footer

Footer container with contextual separator styling.

PropTypeDescription
classNamestringAdditional classes
childrenReactNodeFooter content

Additional Subcomponents

ComponentPurpose
Document.Annotation.Sidebar.Card.ActionsCustom action container
Document.Annotation.Sidebar.Card.ContentRead-only annotation text
Document.Annotation.Sidebar.Card.DeleteDelete button
Document.Annotation.Sidebar.Card.NumberPosition badge
Document.Annotation.Sidebar.Card.RootCustom inner layout container
Document.Annotation.Sidebar.Card.TimestampFormatted creation timestamp
Document.Annotation.Sidebar.Card.TitleCustom card title

On this page