@enso-ui/comments

Comments cards and inline comment threads for Enso UI.
10,609
Install
npm install @enso-ui/comments
Latest Version:4.2.11
Vue:3
Older releases:2
License:MIT
Last Updated:Apr 28, 2026
Links: GitHub  ·  npm
Maintainer: aocneanu

Comments

License Stable Downloads Vue JavaScript SCSS npm Issues Merge Requests

Description

Comments cards and inline comment threads for Enso UI.

Installation

Install the package:

yarn add @enso-ui/comments

This package is also available through the full enso-ui workspace bundle.

Features

  • exports Comments and CommentsCard through the Bulma entrypoint
  • loads comment threads, supports optimistic create/delete/update flows, and keeps tagged users in sync
  • ships inline edit and delete actions with the Enso confirmation popper
  • surfaces comment counts through the card wrapper used on entity detail pages

Usage

<script setup>
import { CommentsCard } from '@enso-ui/comments/bulma';
</script>

<CommentsCard
    :id="companyId"
    type="company"
    title="Comments"
/>

API

Comments

Thread component that manages the comment list for one model.

Import: @enso-ui/comments/bulma

Props:

  • id: string | number target model id.
  • type: string backend commentable type.
  • query: string | null = null initial filter.
  • compact: boolean = false toggles compact toolbar labels.

Events:

  • update after fetch, create, or delete operations.

Slots:

  • controls receives { create, internalQuery, fetch }.

CommentsCard

Card wrapper around Comments with badge and refresh controls.

Import: @enso-ui/comments/bulma

Props:

  • collapsed: boolean = false
  • id: string | number
  • type: string
  • title: string = ""
  • icon: string | array | object

Events:

  • No direct emits.

Companion Backend Package

The frontend widgets depend on the backend companion for comment thread endpoints, tagged-user support, and the model-type contracts used by the card.

Depends On

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

License

MIT

Related Packages

@enso-ui/addresses

Address cards and address-management widgets for Enso UI detail pages.

10,609 0
@enso-ui/documents

Document list widgets and card wrappers for Enso UI.

9,354 0

Version History

Version Released Vue License
4.2.11 ^3.5.0 MIT
4.2.10 ^3.5.0 MIT
4.2.9 ^3.5.0 MIT
4.2.8 ^3.5.0 MIT
4.2.7 ^3.5.0 MIT