Todo Form
A form component for creating new todo items with validation feedback.
bun x bosia@latest add todo/todo-formA form that submits a POST to ?/create with a title field. Displays an optional error message below.
Props
| Prop | Type | Default |
|---|---|---|
error |
string |
— |
Usage
<script lang="ts">
import { TodoForm } from "$lib/components/todo";
</script>
<TodoForm error={form?.error} />