<% if params[:lookbook][:display][:wrapper] == true %>
<%= yield %>
<% else %>
<%= yield %>
<% end %>
```
> By default ViewComponent will use your default application layout for displaying the rendered example. However it's often better to create a seperate layout that you can customise and use specifically for previewing your components. See the ViewComponent [preview docs](https://viewcomponent.org/guide/previews.html) for instructions on how to set that up.
Any `@display` params set at the preview (class) level with be merged with those set on individual example methods.
#### Global display params
Global (fallback) display params can be defined via a configuration option:
```ruby
# config/application.rb
config.lookbook.preview_display_params = {
bg_color: "#fff",
max_width: "100%"
}
```
Globally defined display params will be available to all previews. Any preview or example-level `@display` values with the same name will take precedence and override a globally-set one.