Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Consistent component API desgin #579

@domtronn

Description

@domtronn

We have some components that have optional 'features', for example, optional progress bars or optional images. I think we should have a consistent approach to designing these kinds of APIs, and my initial food for thought w.r.t. options are the following;

  1. Opt in - i.e. showFeature={true|false}, explicitly asking for the feature
  2. Opt out - i.e. hideFeature={true|false}, explicitly remove the feature
  3. Implicitly - i.e. infer whether to render component based on presence of data

Regardless of which one we choose, I think we should follow one approach for all components and refactor the existing ones accordingly.

Metadata

Metadata

Assignees

No one assigned

    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