Skip to content

Commit bb0093f

Browse files
committed
Release: 0.1.1
1 parent 5a67443 commit bb0093f

File tree

2 files changed

+27
-7
lines changed

2 files changed

+27
-7
lines changed

README.md

+24-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,39 @@
11
# DaisyUi
22

3-
**TODO: Add description**
3+
DaisyUI component library for Phoenix LiveView
4+
5+
Early WIP, don't use it yet.
46

57
## Installation
68

7-
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
9+
Tthe package can be installed
810
by adding `daisy_ui` to your list of dependencies in `mix.exs`:
911

1012
```elixir
1113
def deps do
1214
[
13-
{:daisy_ui, "~> 0.1.0"}
15+
{:daisy_ui, "~> 0.1.1"}
1416
]
1517
end
1618
```
1719

18-
Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
19-
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
20-
be found at <https://hexdocs.pm/daisy_ui>.
20+
## Usage
21+
22+
Add a `use DaisyUi` to your LiveView component or directly in your liveview macro.
23+
24+
```elixir
25+
# libs/your_app_web.ex
26+
def live_view do
27+
quote do
28+
use Phoenix.LiveView,
29+
layout: {YourAppWeb.Layouts, :app}
30+
31+
use DaisyUi # <--- Add this line
32+
33+
unquote(html_helpers())
34+
end
35+
end
36+
```
37+
38+
The docs can be found at <https://hexdocs.pm/daisy_ui>.
2139

mix.exs

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule DaisyUi.MixProject do
44
def project do
55
[
66
app: :daisy_ui,
7-
version: "0.1.0",
7+
version: "0.1.1",
88
elixir: "~> 1.16",
99
elixirc_paths: elixirc_paths(Mix.env()),
1010
start_permanent: Mix.env() == :prod,
@@ -42,6 +42,8 @@ defmodule DaisyUi.MixProject do
4242
defp description do
4343
"""
4444
DaisyUI component library for Phoenix LiveView
45+
46+
Early WIP, don't use it yet.
4547
"""
4648
end
4749

0 commit comments

Comments
 (0)