0.0
No release in over 3 years
Low commit activity in last 3 years
A collection of ui components implemented in cells.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 11.1.3
~> 3.35.3
~> 0.3.5
~> 1.4.2

Runtime

~> 0.1.0
~> 0.1.3
~> 1.4.0
~> 1.5
~> 6.0.3, >= 6.0.3.1
 Project Readme

Organism Ui

Ui components made with cells (https://github.com/trailblazer/cells). This library is in ALPHA and subject to change anytime and dramatically before 1.0.

Usage

Components

Components are just configurable cells (https://github.com/trailblazer/cells) for basic ui components. Inspired by ant.design.

You render components in your views or controllers:

<%= cell(
  Ui::Buttons::Primary,
  'Primary Button',
  path: '/'
) %>

You can see full examples of components in the style guide: https://github.com/nolantait/organism-ui/blob/master/app/views/ui/style_guide/show.html.erb

Installation

Add this line to your application's Gemfile:

gem 'organism-ui'

And then execute:

$ bundle

Or install it yourself as:

$ gem install organism-ui

Style guide

To quickly style your components you can mount the engine and navigate to an example style guide.

Rails.application.routes.draw do
  mount Ui::Engine => "/ui"
end

You can then navigate to localhost:3000/ui/style_guide to see your components.

Contributing

Contribution directions go here.

License

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