With margin bottom
The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the GOV.UK Frontend spacing scale. It defaults to a margin bottom of 0.
How it looks (preview)
How to call this example
<%= render "components/expander", {
title: "Person",
margin_bottom: 9
} do %>
This is some content that is passed to the component. It should be distinct from the component, in that the component should not style or interact with it, other than to show and hide it.
<% end %>