Switcher list

If the list property is true, a ul element will be rendered instead of the standard div.

<Switcher list={true}>
	<li>List item</li>
	<li>List item</li>
	<li>List item</li>
	...
</Switcher>

results in:

<ul class="switcher">
	<li>List item</li>
	<li>List item</li>
	<li>List item</li>
	...
</ul>

Props

Example

  • Item
  • Item
  • Item