Skip to content

Latest commit

 

History

History
 
 

component-list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@carbon/devtools-component-list

Generates a list of components and their selectors across all of the Carbon libraries.

Contribute a component/library

Anyone can contribute a new component, or library. Just follow the steps below and submit a pull request.

  1. Add a unique prefix to the prefixSelectors.js file.

  2. Create a file under src/library with the library name.

  3. import your library's prefix, components, and stable attribute.

  4. Loop through your components, or manually add them based on the following data structure, and then export the resulting data.

{ 'unique-component-selector': 'component-display-name' }

💡 Thinking about maintenance, it's best to find a way to build this data from your component library. See how cloud-cognitive set up their components to scale.

  1. Add your new library file to the build file src/index.js