Skip to content

Commit

Permalink
Merge pull request #69 from ecielam/with_bare_sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Jul 24, 2023
2 parents c9477fb + 900e7bc commit 24fb2ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/2.0/native-components/avo-panel-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,15 @@ The sidebar will conveniently show things in a smaller area on the right of the
```
![](/assets/img/native-components/avo-panel-component/sidebar.png)
:::

:::option `bare_sidebar`
Use this instead of `sidebar` to display content in a sidebar without the white background styling.

```erb{2-4}
<%= render Avo::PanelComponent.new do |c| %>
<% c.with_bare_sidebar do %>
Something tiny here.
<% end %>
<% end %>
```
:::

0 comments on commit 24fb2ac

Please sign in to comment.