@svar-ui/svelte-tasklist
v2.6.3
Published
Simple Svelte component for adding a task list section on a page
Readme
SVAR Svelte TaskList
SVAR Svelte Tasklist is a lightweight and intuitive Svelte UI component for managing task lists or to-do lists. It allows users to add new tasks, edit existing ones, mark tasks as completed, and remove them.
How to Use
To use the widget, simply import the package and include the component in your Svelte file:
<script>
import { Tasklist } from "@svar-ui/svelte-tasklist";
const value = [];
</script>
<Tasklist {value} />How to Modify
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.
