-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e59a4c
commit 2f65ed3
Showing
2 changed files
with
70 additions
and
33 deletions.
There are no files selected for viewing
38 changes: 37 additions & 1 deletion
38
playbook/app/pb_kits/playbook/pb_card/docs/_card_light.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,40 @@ | ||
<%= pb_rails("card", props: { | ||
}) do %> | ||
html_options: { | ||
class: "pb-card-light" | ||
}, | ||
height: "600px" | ||
}) do %> | ||
Card content | ||
<% end %> | ||
<%# Example showing html_options style also works %> | ||
<%= pb_rails("card", props: { | ||
html_options: { | ||
class: "pb-card-light", | ||
style: { height: "422px", background_color: "orange" } | ||
} | ||
}) do %> | ||
Card content with html_options style | ||
<% end %> | ||
<%# Example showing just html_options %> | ||
<%= pb_rails("card", props: { | ||
html_options: { | ||
width: "60px", | ||
} | ||
}) do %> | ||
Card content with just html_options style | ||
<% end %> | ||
<%= pb_rails("card", props: { | ||
height: "100%", | ||
html_options: { | ||
style: { width: "100%", background_color: "blue" }, | ||
tabindex: 7 | ||
}, | ||
min_height: "189px" | ||
}) do %> | ||
HELLO WORLD!!! | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters