An open API service indexing awesome lists of open source software.

https://github.com/joshuar/go-templ-daisyui

Generate beautiful UIs with DaisyUI using Templ + Go
https://github.com/joshuar/go-templ-daisyui

daisyui go golang htmx templating web

Last synced: about 1 year ago
JSON representation

Generate beautiful UIs with DaisyUI using Templ + Go

Awesome Lists containing this project

README

          


Go-Templ-DaisyUI


Generate beautiful UIs with DaisyUI using Templ + Go.



contributors


last update


forks


stars


open issues


license



Documentation
ยท
Report Bug
ยท
Request Feature



# ๐Ÿ“œ Table of Contents

- [๐Ÿ“œ Table of Contents](#-table-of-contents)
- [๐ŸŒŸ About the Project](#-about-the-project)
- [๐Ÿ—๏ธ Tech Stack](#๏ธ-tech-stack)
- [๐ŸŽฏ Features](#-features)
- [๐Ÿงฐ Usage](#-usage)
- [Custom Classes](#custom-classes)
- [๐Ÿ‘‹ Contributing](#-contributing)
- [๐Ÿค Code of Conduct](#-code-of-conduct)
- [๐Ÿง‘โ€โš–๏ธ License](#๏ธ-license)

## ๐ŸŒŸ About the Project

### ๐Ÿ—๏ธ Tech Stack

Components

### ๐ŸŽฏ Features

- Generate DaisyUI components with builder functions, specifying optional features.
- Render using Templ and/or htmx.

## ๐Ÿงฐ Usage

Include as a module in your Go project:

```go
import components "github.com/joshuar/go-templ-daisyui"
```

### Custom Classes

Components support custom classes by passing the following to their `Show()` method:

- a list of strings
- a single string with space-separated class values

The classes will be added to the Component enclosure element.

> [!NOTE]
> When adding custom classes, ensure you call the `Show()` method in a `.templ`
> file. This will ensure that CSS pre-processors (such as Tailwind) will see the
> classes and act appropriately. If you call the `Show()` method in a `.go`
> file, your classes may not get applied correctly.

## ๐Ÿ‘‹ Contributing


Contributor Badges

Contributions are always welcome!

### ๐Ÿค Code of Conduct

Please read the [Code of Conduct](https://github.com/joshuar/go-templ-daisyui/blob/master/CODE_OF_CONDUCT.md)

## ๐Ÿง‘โ€โš–๏ธ License

Distributed under the MIT License. See [LICENSE](./LICENSE) for more information.