# Collapse
The [`Collapse`][collapse] widget shows and hides its child based on the value
of a [`Dynamic<bool>`][dynamic]. It can collapse its child in either
orientation:
- [`Collapse::vertical()`][vertical]/[`MakeWidget::collapse_vertically()`][mw-collapse-v]
- [`Collapse::horizontal()`][horizontal]/[`MakeWidget::collapse_horizontally()`][mw-collapse-h]
[collapse]: <{{ docs }}/widgets/struct.Collapse.html>
[dynamic]: <{{ docs }}/value/struct.Dynamic.html>
[vertical]: <{{ docs }}/widgets/struct.Collapse.html#method.vertical>
[horizontal]: <{{ docs }}/widgets/struct.Collapse.html#method.horizontal>
[mw-collapse-v]: <{{ docs }}/widget/trait.MakeWidget.html#method.collapse_vertically>
[mw-collapse-h]: <{{ docs }}/widget/trait.MakeWidget.html#method.collapse_horizontally>