Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.
/ daisy_ui Public archive

An implementation of DaisyUI for Phoenix LiveView

License

Notifications You must be signed in to change notification settings

luhagel/daisy_ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DaisyUi

.github/workflows/ci.yml

This repo has been archived in favour of the official implmentation arriving with Phoenix 1.8

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