Comments

1 Object type • 5 demo Objects

Follow the steps below to install this Block. Make sure you have reviewed the getting started steps.
This will create the comments Object type in your Bucket and add demo content.
This will add the files CommentForm.tsx,Comments.tsx, actions.tsx server actions, and components to your blocks folder located in cosmic/blocks/comments.
Import the block into your app.
Add the following to a single blog post file `app/blog/[slug]/page.tsx`. Note 1: this assumes you have installed the Blog Block. Note 2: this will only show approved comments. Approve the comments from the Cosmic dashboard.
footer logo