Components Generators
Petal Framework

Generators

Quickly scaffold a Petal CRUD interface, including a data table with pagination, sorting and filtering.
You need to be a Pro member to use this component.

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 Framework. 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