Skip to content

Commit 8d3b629

Browse files
committed
feat: added a button component
1 parent ae73cf8 commit 8d3b629

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/system/lib/Components.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ const Components: Library = {
3737
})
3838
return button
3939
}
40+
},
41+
Icon: {
42+
new: (icon: string) => {
43+
const { HTML } = library
44+
return new HTML('i')
45+
.class('material-symbols-rounded')
46+
.text(icon)
47+
}
4048
}
4149
}
4250
}

0 commit comments

Comments
 (0)