Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Front End

    • Accessories
    • Addresses
    • Algolia
    • Audits
    • Auth
    • Bookmarks
    • Calendar
    • Card
    • Cargo Partner
    • Categories
    • Charts
    • Checkbox
    • Clipboard
    • Comments
    • Commercial
    • Companies
    • Confirmation
    • Currencies
    • Data Import
    • Date
    • Datepicker
    • Directives
    • Discounts
    • Divider
    • Documents
    • Dropdown
    • Dropdown Indicator
    • Eav
    • Emag
    • Emails
    • Enums
    • ERD
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Holidays
    • How to
    • Interactions
    • Inventory
    • IO
    • Laravel Validation
    • Loader
    • Localisation
    • Logs
    • Measurement Units
    • Meili Search
    • Menus
    • Mixins
    • Modal
    • Money
    • Monitored Emails
    • Notifications
    • Orderable Trees
    • Packaging Units
    • Pagination
    • People
    • Permissions
    • Product Lots
    • Products
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Questionnaires
    • Quick View
    • Range Slider
    • Rating
    • Roles
    • Route Mapper
    • Sale Channels
    • Scroll to Top
    • Search Mode
    • Select
    • Sentry
    • Services
    • Smart Bill
    • SMS Advert
    • Strings
    • Switch
    • Tables
    • Tabs
    • Tasks
    • Teams
    • Textarea
    • Themes
    • Ticketing
    • Toastr
    • Transitions
    • Tree View
    • Tutorials
    • Typeahead
    • Typesense
    • UI
    • Uploader
    • UPS
    • User Groups
    • Users
    • Virtual Call Center
    • Vouchers
    • Webshop
    • WYSIWYG

Comments

LicenseStableDownloadsVueJavaScriptSCSSnpmIssuesMerge 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

  • laravel-enso/comments ↗

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

  • @enso-ui/card ↗
  • @enso-ui/confirmation ↗
  • @enso-ui/directives ↗
  • @enso-ui/transitions ↗
  • @enso-ui/ui ↗

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

Edit this page on GitHub
Last Updated: 4/21/2026, 9:47:09 AM
Prev
Clipboard
Next
Commercial