Skip to content

sevenseacat/phoenix_tailwind_progress_bar_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phoenix LiveView and component flash message example

An example of how to use the HTML progress element and TailwindCSS, to make nicely styled progress components that don't violate content security policies!

I wrote more about this in a blog post, Dynamic HTML progress bars with TailwindCSS.

Setup

git clone https://github.com/sevenseacat/phoenix_tailwind_progress_bar_example.git
cd phoenix_tailwind_progress_bar_example
mix deps.get

Run

mix phx.server

And you can visit the default homepage at http://localhost:4000.

Check out the TailwindCSS config in assets/tailwind.config.js, and the the LiveView in /lib/phoenix_tailwind_progress_bar_example/live/demo_live.ex to see how it all hangs together! ✨

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published