Skip to content

Move related components to static properties #367

@satya164

Description

@satya164

@Trancever implemented grouping for related components in component docs. Now we need to use it in Paper.

  • Add related components as static properties instead of separate exports for Card, Dialog, Toolbar, ListSection, DrawerSection
  • Add displayName to those components, e.g.: `static displayName = "Card.Actions" so that react docgen can read the name
  • Add a comment like // @component ./CardActions.js above the static properties for the script
  • Read these properties in the script to get the list of files to build

We should do it in 2.0 since it'll be a breaking change.

kapture 2018-05-12 at 17 35 11

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions