How to use the carbon-components.Dropdown.create function in carbon-components

To help you get started, we’ve selected a few carbon-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github carbon-design-system / carbon / packages / components / examples / codesandbox / src / index.js View on Github external
import { Dropdown } from "carbon-components";

Dropdown.create(document.getElementById("my-dropdown"));