Storybook with view components rails engine
Add this line to your application's Gemfile:
gem 'storybook_engine'
And then execute:
$ bundle
Or install it yourself as:
$ gem install storybook_engine
You must have a colors.scss
file
To declare important basic colors [charcoal,red,black,white] ,
And specify the primary-color
$charcoal: #484848;
$red: #e30b1c;
$black: #000;
$white: #fff;
$primary-color: #49BFAC;
Note: After add gem and import colors file please add this line into your applications.scss
@import "storybook_engine";
= render(ButtonComponent.new(options: {type: "submit"},classes: "w-100")) { "Save" }
The gem is available as open source under the terms of the MIT License.