Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1005 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 1005 Bytes

Stylish

Build Status hex.pm version

Phoenix view helpers for HTML components styled with tailwindcss

Installation

Add the stylish package to your list of dependencies in mix.exs:

def deps do
  [
    {:stylish, "~> 0.0.9"}
  ]
end

Tables

Navigation

Navigation links between the first, previous, current, next & last page of a table

table navigation

<%= render(
  Stylish.Table,
  "navigation.html",
  conn: @conn,
  to: fn endpoint, page -> endpoint.example_path(endpoint, :index, page: page) end,
  current_page: 5,
  last_page: 10
) %>

Authors

License

stylish is released under the MIT license