Dropdown

Global Script

The Dropdown Component uses JavaScript for toggling and accessibility.

<script src="@nycopportunity/standard/dist/js/default.js"></script>

<script>
  var Standard = new Default();

  Standard.dropdown();
</script>
Module Import

For module imports, import the Dropdown module from the source.

import Dropdown from '@nycopportunity/standard/src/components/dropdown/dropdown';

new Dropdown();