How are componentType and status used?

Created on 23 February 2023, over 1 year ago

ComponentType and Status are required in the component schema but it's not clear how these are used. I have a couple questions...

  1. What would be repercussions of making these optional?
  2. Is it possible to change the enum values to suit our own needs?

I've found component type categorization, like atomic design, adds unnecessary cognitive overhead when defining components. I often get asked whether or not something should be an Atom, Molecule or Organism. I've found it simpler to just accept that components are infinitely nestable and come in different sizes and levels of complexity. This is one of the things that makes component based JS frameworks fun to work with.

In any case, thanks so much for your work on this! I've personally had a lot of false starts trying to integrate a living style guide or pattern library with Drupal. This module and the Storybook integration address all those past issues. I'm very excited about these concepts potentially getting into core.

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024