Skip to content

Standardize & Simplify Component Interface Format #104

@alexgetty

Description

@alexgetty

Some component interfaces have robust inline documentation (like atoms/images/image.tsx) while others do not (like atoms/anchors/anchor.tsx). I feel like typescript interfaces are pretty self-documenting as far as types go, and the documentation in components like Image are redundant and overly verbose by adding 6 new comment lines for every 1 prop line, especially for interfaces with more than a few props. Unless there is an argument for keeping them, I propose we remove this redundant inline documentation. If we do keep it, it should be added to all component interfaces.

Screen Shot 2021-01-28 at 10 37 19 AM
Screen Shot 2021-01-28 at 10 37 28 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    low priorityThere isn't an immediate use case at this time.

    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