No commit activity in last 3 years
No release in over 3 years
StorybookEngine.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 6.1.4, >= 6.1.4.1
 Project Readme

StorybookEngine

Storybook with view components rails engine

Installation

Add this line to your application's Gemfile:

gem 'storybook_engine'

And then execute:

$ bundle

Or install it yourself as:

$ gem install storybook_engine

Setup

You must have a colors.scss file
To declare important basic colors [charcoal,red,black,white] ,
And specify the primary-color

Colors file sample

$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";

Usage

Button
= render(ButtonComponent.new(options: {type: "submit"},classes: "w-100")) { "Save" }

License

The gem is available as open source under the terms of the MIT License.