ComponentsLumos 0.0.2NewOpen component
Dropdown
A labelled control that opens a panel of anything.
Dropdown is a button and the panel it opens. What goes in the panel is up to you — links, a filter, a short form — which is what makes it different from Select: a select is a field that submits a value, and this is a place to put things.
<Dropdown label="Resources">
<ul>
<li><a href="/guides">Guides</a></li>
<li><a href="/support">Support</a></li>
</ul>
</Dropdown>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
render | boolean | true | Set to false to skip this component and everything inside it. |
label | string | None | The text on the control that opens it. |
preview | boolean | false | Holds the panel open while a visual builder is in design mode, so the content can be edited. Nothing changes on the published page. |
Anything else you pass goes through to the wrapper, so a class or an id lands where you would expect.