Use element primitives instead of inline Component; add Template primitive

Add a Template() primitive for the standard <template> tag and export it. Replace
inline Component(tag_name="div"/"span"/"input"/"template") in search_select.py
and Pill with Div/Span/Input/Template; drop the private _template helper in favour
of Template at the call sites. Bare custom-styled <button>s stay on Component
(the opinionated Button() would inject unwanted classes). Document the
prefer-primitives convention in CLAUDE.md.

https://claude.ai/code/session_01XzhXvMvw42CQGc9kmin3GS
This commit is contained in:
Claude
2026-06-08 14:49:48 +00:00
committed by Lukáš Kucharczyk
parent 15bb3ce1b9
commit 79fa4bef44
5 changed files with 62 additions and 56 deletions
+2
View File
@@ -36,6 +36,7 @@ from common.components.primitives import (
TableHeader,
TableRow,
TableTd,
Template,
YearPicker,
paginated_table_content,
)
@@ -95,6 +96,7 @@ __all__ = [
"TableHeader",
"TableRow",
"TableTd",
"Template",
"YearPicker",
"paginated_table_content",
"GameLink",