Skip to content
Markie Arnold edited this page Jun 25, 2019 · 30 revisions

In playbook, there is a kit generator.

Usage

rails generate kit "Button"
Options
# Defining props
rails generate kit "Button" --props text variant disabled

# Defining props with type
rails generate kit "Button" --props text:string variant:array disabled:boolean

Rails Kit

Create RAILS kit? (y/N)
# If your kit will need a rails version, type `y` and hit enter

React Kit

Create REACT kit? (y/N)
# If your kit will need a react version, type `y` and hit enter