Skip to content

luhagel/daisy_ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DaisyUi

.github/workflows/ci.yml

DaisyUI component library for Phoenix LiveView

Early WIP, don't use it yet.

Installation

Tthe package can be installed by adding daisy_ui to your list of dependencies in mix.exs:

def deps do
  [
    {:daisy_ui, "~> 0.1.1"}
  ]
end

Usage

Add a use DaisyUi to your LiveView component or directly in your liveview macro.

in libs/your_app_web.ex

  ...

  def live_view do
    quote do
      use Phoenix.LiveView,
        layout: {YourAppWeb.Layouts, :app}

      use DaisyUi # <--- Add this line

      unquote(html_helpers())
    end
  end

  ...

The docs can be found at https://hexdocs.pm/daisy_ui.

About

An implementation of DaisyUI for Phoenix LiveView

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages