<% 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.
#### Some `@display` value examples:
Valid:
```ruby
# @display body_classes "bg-red border border-4 border-green"
# @display wrap_in_container true
# @display emojis_to_show 4
# @display page_title "Special example title"
```
Invalid:
```ruby
# @display body_classes 'bg-red border border-4 border-green' [❌ single quotes]
# @display wrap_in_container should_wrap [❌ unquoted string, perhaps trying to call a method]
# @display page title "Special example title" [❌ space in key]
# @display bg_color #fff [❌ colors need quotes around them, it's not CSS!]
```
### 🔖 `@!group