You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Thanks for the work you've done here! I have several "components" that are essentially a CSS class and some plain HTML. When you render these inline, you encounter a couple of issues. The first is that Lookbook wants a "preview" view to exist in app/views/lookbook/previews/_preview.html.erb and the second issue is that render inline: "foo" doesn't output anyting.
To Reproduce
Create a preview and use render inline: to render a bit of ERB or plain HTML.
Describe the bug
👋 Thanks for the work you've done here! I have several "components" that are essentially a CSS class and some plain HTML. When you render these inline, you encounter a couple of issues. The first is that Lookbook wants a "preview" view to exist in
app/views/lookbook/previews/_preview.html.erb
and the second issue is thatrender inline: "foo"
doesn't output anyting.To Reproduce
render inline:
to render a bit of ERB or plain HTML._preview.html.erb
partial._preview.html.erb
partial in the location requested as a workaround.Expected behavior
A button preview will render and there will be no requirement of a separate _preview partial.
Screenshots
If applicable, add screenshots to help explain your problem.
Version numbers
Please complete the following information:
The text was updated successfully, but these errors were encountered: