Comment Thread Component

No comment

No comment yet. Display clickable add comment text with icon.

# First column Second column Comment
1 Lorem Ipsum 1 Lorem Ipsum 2
Add Comment

                                    <table class="table table-hover table-bordered">
                                        <thead class="table-dark">
                                            <tr>
                                            <th scope="col">...</th>
                                            <th scope="col">...</th>
                                            <th scope="col">...</th>
                                            <th scope="col" width="30%">...</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                        <th scope="row">...</th>
                                        <td>...</td>
                                        <td>...</td>
                                        <td>
                                            <div class="d-flex justify-content-center align-items-center gap-1 p-2 text-muted" style="cursor:pointer">
                                                <i class="far fa-comment text-muted"></i> Add Comment
                                            </div>
                                        </td>
                                        </tr>
                                    </tbody>
                                    </table>
                                

                                    import React from 'react';
                                    import './styles.css'; // Assuming you have a CSS file for styling

                                    function MyTable() {
                                    return (
                                        <table className="table table-hover table-bordered">
                                        <thead>
                                            <tr>
                                            <th scope="col">#</th>
                                            <th scope="col">First column</th>
                                            <th scope="col">Second column</th>
                                            <th scope="col" width="30%">Comment</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                            <th scope="row">1</th>
                                            <td>Lorem Ipsum 1</td>
                                            <td>Lorem Ipsum 2</td>
                                            <td>
                                                <div className="d-flex justify-content-center align-items-center gap-1 p-2 text-muted" style={{ cursor: 'pointer' }}>
                                                <i className="far fa-comment text-muted"></i> Add Comment
                                                </div>
                                            </td>
                                            </tr>
                                        </tbody>
                                        </table>
                                    );
                                    }

                                    export default MyTable;
                                

                                    <template>
                                        <table class="table table-hover table-bordered">
                                        <thead>
                                            <tr>
                                            <th scope="col">#</th>
                                            <th scope="col">First column</th>
                                            <th scope="col">Second column</th>
                                            <th scope="col" width="30%">Comment</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr>
                                            <th scope="row">1</th>
                                            <td>Lorem Ipsum 1</td>
                                            <td>Lorem Ipsum 2</td>
                                            <td>
                                                <div class="d-flex justify-content-center align-items-center gap-1 p-2 text-muted" style="cursor:pointer">
                                                <i class="far fa-comment text-muted"></i> Add Comment
                                                </div>
                                            </td>
                                            </tr>
                                        </tbody>
                                        </table>
                                    </template>
                                    <script>
                                    export default {
                                        name: 'MyTable',
                                    };
                                    </script>
                                    <style scoped>
                                    /* Add your table-specific styles here */
                                    </style>
                                
Opened comment

Comment opened already.

# First column Second column Comment
1 Lorem Ipsum 1 Lorem Ipsum 2
...
Juan Dela Cruz
08 Aug 2024 01:06 PM

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

Unread Latest Comment

Latest comment unopened. Font weight set to bold.

# First column Second column Comment
1 Lorem Ipsum 1 Lorem Ipsum 2
...
Juan Dela Cruz
08 Aug 2024 01:06 PM

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

Open Comment Modal

Click comment area to open comment modal.

# First column Second column Comment
1 Lorem Ipsum 1 Lorem Ipsum 2
...
Juan Dela Cruz
08 Aug 2024 01:06 PM

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum