Components
Generators
Petal Pro
Generators
Quickly scaffold a Petal CRUD interface, including a data table with pagination, sorting and filtering.
How to access
Access options
This comes with Petal Pro. Purchase a membership to get access to this package. It can be used with any Phoenix project. Post-expiration, you'll retain access but won't be eligible for updates from newer versions.
petal.gen.live
The petal.gen.live
generator is a wrapper around phx.gen.live
that uses Petal Components instead of the default core components. It also uses the Data Table component from Petal Pro. Follow the Phoenix docs for phx.gen.live
to learn more.
terminal
mix petal.gen.live Blog Post posts title description:text published_at:datetime published:boolean
petal.gen.html
The petal.gen.html
generator is a wrapper around phx.gen.html
that uses Petal Components instead of the default core components. Follow the Phoenix docs for phx.gen.html
to learn more.
terminal
mix petal.gen.html Blog Post posts title description:text published_at:datetime published:boolean