
tmanhkhaLike shadcn for Rails: generators drop ViewComponents + ERB + plain CSS into your app. You edit the...
Like shadcn for Rails: generators drop ViewComponents + ERB + plain CSS into your app. You edit the files; the gem is mainly installers + an optional /ui styleguide.
Why bother
app/components and app/assets, not inside a gem you can’t edit..dark on html or body./ui for live previews and copy-paste snippets.Ui::Form::Builder keeps fields aligned with standalone components.
bundle add uikit_rails
bin/rails generate uikit_rails:install
bin/rails generate uikit_rails:add button card
<%= render Ui::Button::Component.new do %>Click me<% end %>
Mounts UikitRails styleguide engine at /ui so you can preview and copy code for installed components.
mount UikitRails::Engine => "/ui" # optional