Skip to content

Commit 326f50f

Browse files
committed
Simplifies card demo in README
1 parent 00c2f42 commit 326f50f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,10 @@ Then you can use the components
118118
```ruby
119119
render Protos::Card.new(class: "bg-base-100") do |card|
120120
card.body(class: "gap-sm") do
121-
card.span(class: "font-bold") { "Hello world" }
121+
card.title(class: "font-bold") { "Hello world" }
122+
span { "This is some more content" }
122123
card.actions do
123-
card.button(class: "btn btn-primary") { "Action 1" }
124+
button(class: "btn btn-primary") { "Action 1" }
124125
end
125126
end
126127
end

0 commit comments

Comments
 (0)