Skip to content

Commit

Permalink
add with_bare_sidebar option to panel component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Noetzelman committed Jul 24, 2023
1 parent c9477fb commit 900e7bc
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 900e7bc

Please sign in to comment.