Skip to content

Standardize Atom & Molecule classification #84

@alexgetty

Description

@alexgetty

As defined in the docs, Atoms are supposed to be a single "component" (I'm assuming this means HTML tag). This also implies that an Atom cannot contain another Atom, and any component that does contain an Atom is at least a Molecule.

There are numerous components currently classified as Atoms that, by this definition, are actually Molecules. I propose moving them to the Molecules layer.

atoms/*/anchor-with-icon.tsx => span element. Anchor and Icon components.
atoms/*/checkbox-button.tsx => label, span, and input elements. Icon component.
atoms/*/checkbox-input.tsx => label, input, and span elements
atoms/*/radio-button-input.tsx => div, input, and label elements
atoms/*/select.tsx => div, and select elements. Icon component.
atoms/*/text-input-icon.tsx => div element. Icon and TextInput components.
atoms/*/progress-bar.tsx => 2 div elements.
atoms/*/toast-templates.tsx => 3 div elements. Icon component.
atoms/*/heading-icon.tsx => div element. Icon and Heading components.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions