File tree 2 files changed +27
-7
lines changed
2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 1
1
# DaisyUi
2
2
3
- ** TODO: Add description**
3
+ DaisyUI component library for Phoenix LiveView
4
+
5
+ Early WIP, don't use it yet.
4
6
5
7
## Installation
6
8
7
- If [ available in Hex ] ( https://hex.pm/docs/publish ) , the package can be installed
9
+ Tthe package can be installed
8
10
by adding ` daisy_ui ` to your list of dependencies in ` mix.exs ` :
9
11
10
12
``` elixir
11
13
def deps do
12
14
[
13
- {:daisy_ui , " ~> 0.1.0 " }
15
+ {:daisy_ui , " ~> 0.1.1 " }
14
16
]
15
17
end
16
18
```
17
19
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 > .
21
39
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule DaisyUi.MixProject do
4
4
def project do
5
5
[
6
6
app: :daisy_ui ,
7
- version: "0.1.0 " ,
7
+ version: "0.1.1 " ,
8
8
elixir: "~> 1.16" ,
9
9
elixirc_paths: elixirc_paths ( Mix . env ( ) ) ,
10
10
start_permanent: Mix . env ( ) == :prod ,
@@ -42,6 +42,8 @@ defmodule DaisyUi.MixProject do
42
42
defp description do
43
43
"""
44
44
DaisyUI component library for Phoenix LiveView
45
+
46
+ Early WIP, don't use it yet.
45
47
"""
46
48
end
47
49
You can’t perform that action at this time.
0 commit comments