feat: added a button component

This commit is contained in:
ThinLiquid 2024-01-18 09:00:14 +00:00
parent ae73cf821b
commit 8d3b629185
No known key found for this signature in database
GPG key ID: 17538DC3DF6A7387

View file

@ -37,6 +37,14 @@ const Components: Library = {
})
return button
}
},
Icon: {
new: (icon: string) => {
const { HTML } = library
return new HTML('i')
.class('material-symbols-rounded')
.text(icon)
}
}
}
}