Skip to content

Commit

Permalink
Update Bulma::BoxComponent to use view
Browse files Browse the repository at this point in the history
  • Loading branch information
diegotoral committed Feb 7, 2024
1 parent ce93dc9 commit 7c9fd99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Unreleased]

- Converted preview for `Bulma::BoxComponent` to use view file
- Converted default preview for `Bulma::ProgressBarComponent` to use view file
- Added support to specify content as first arggument to `Bulma::TitleComponent`
- Drop supoort for Ruby 2,7
Expand Down
3 changes: 0 additions & 3 deletions previews/elements/box_component_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,5 @@

class Elements::BoxComponentPreview < ViewComponent::Preview
def with_text_content
render(Bulma::BoxComponent.new) do
"I'm in a box."
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%= bulma_box do %>
I'm a box
<% end %>

0 comments on commit 7c9fd99

Please sign in to comment.