Skip to content

sdn90/component_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP: Currently unstable and NOT following Semver. Use at your own risk.

ComponentEx

A pattern for creating static UI components for Phoenix.

Why Components?

Reusability
By breaking down a UI into smaller generic components, you can drastically reduce the amount of markup you have to write without sacrificing flexbility.

Easy to test
Since components are just functions that return HTML, you can easily test them without the need to render entire pages. You can use a library such as Floki to parse the HTML using CSS selectors.

TODO

  • Generators
  • Inline style support?
  • Testing utilities
  • Document patterns (higher order components)

About

WIP: Composable views for Elixir & Phoenix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages