refactor: Refactor Button and GroupedListItem components

Improve component typing with more specific HTML attribute types and
implement conditional rendering based on properties. Use Svelte snippets
to avoid code duplication and enhance component flexibility.
This commit is contained in:
Shibo Lyu 2025-04-17 02:28:08 +08:00
parent 9e79b29c69
commit c379933787
3 changed files with 67 additions and 47 deletions

9
.zed/settings.json Normal file
View file

@ -0,0 +1,9 @@
{
"lsp": {
"tailwindcss-language-server": {
"settings": {
"classFunctions": ["tw"]
}
}
}
}