A Svelte UI component for creating a comments section. Supports adding, editing, and deleting comments with ease.
To use the widget, simply import the package and include the component in your Svelte file:
<script>
import { Comments } from "@svar-ui/svelte-comments";
const value = [];
</script>
<Comments {value} />For further instructions, visit the documentation.
Typically, you don't need to modify the code. However, if you wish to do so, follow these steps:
- Install vite-plus (
curl -fsSL https://vite.plus | bashon Mac/Linux,irm https://vite.plus/ps1 | iexon Windows). The project usespnpmworkspaces under the hood, so plainnpmwill not work. - Run
vp ifrom the project root to install dependencies. - Run
vp run buildto build all packages. - Start the demo app in development mode with
vp run start.
