# Expander

Generic, unstyled expanding component with support for any element as toggle or contents to be toggled.

- `children`: the contents to be toggled open or closed
- `headingComponent`: the element that gets clicked
- `headingComponentOpen`: an optional alternate heading component
- `onToggle`: a callback that would be executed after the Expander has toggled open or closed, passing the open state as the only argument, i.e. `true = open, false = closed`
- `buttonStyles`: the `<UnstyledButton />` is displayed inline-block by default. Should you wish to change this or add any styles to it, you can do so with this prop
