Templ Components maded with Tailwind and DaisyUI, for easy use.
- Components ready to use.
- Includes Types as
Links
,Attributes
and more. - Color and size customizable.
Install the UI with go get
go get github.com/henrriusdev/templdais
// /path/to/your/file.templ
package templdais
templ Page() {
<div class="w-full h-full flex justify-center items-center">
@Button("primary", "button", "sm", "circle"){
This works!
}
}
Here, the arguments are:
- The value
primary
is for the brand color. - The value
button
is for the HTML Tag. sm
is the size.circle
is the shape of the button, can besquare
orcircle
.
DaisyUI Components ported to TemplDais:
- Button
- Dropdown
- Modal
- Kbd
- Breadcrumbs
- Checkbox
- Radio
- Accordion
- Badge
- Card (responsive card for now)
- Table
- Navbar
- Pagination
- Toast
- File Input
- Range
- Select
- Text input
- Textarea
- Code
- Alert
- Divider
- Menu
- Bottom navigation
- Progress
- Tooltip
Comming soon:
- A Documentation web of TemplDais is incoming soon (in development)
- I've plained to use or create a Icons Kit for TemplDais, for now, you must provide the url of the icons (svg)
And next (not my priority):
- Chat bubble
- Toggle
- Drawer
- Collapse
- Stat
- Avatar
- Advanced pagination
Not implementable (yet):
- Countdown & Radial Progress (sorry, templ doesn´t allows dynamic style attribute for set
--value
css variable) - Tab (it needs a tabs and tabpanel, maybe in a long future I'll work on this)
- Timeline (for now, it includes many features that I can´t do it myself yet)
- Indicator (it is a section with a badge... implement yourself)