[Issue #5] Todo list example #16

Merged
HugoNijhuis merged 2 commits from issue-5-todo-list-example into main 2026-01-09 16:29:58 +00:00

2 Commits

Author SHA1 Message Date
2b2b8978d8 Remove internal package import from todo example
All checks were successful
CI / build (pull_request) Successful in 28s
Replace direct internal/element usage with public ui package
components to ensure examples only use the public API:

- Add ui.RawCheckbox for plain checkbox without label wrapper
- Add ui.Span for span elements with text content
- Add View.TextDecoration modifier for strikethrough styling
- Update todo example to use these public components

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 17:24:11 +01:00
a85ae91023 Add todo list example
All checks were successful
CI / build (pull_request) Successful in 27s
This example demonstrates Iris reactive patterns:
- Signal holding a slice/list of todos
- Adding and removing items dynamically
- Component composition (inputRow, todoList, todoItem)
- Input handling with TextInput and Enter key support
- Conditional rendering (empty state, strikethrough for completed)

Closes #5

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 17:01:27 +01:00