Skip to content

Add an Error pattern to help with required component props #1690

Description

@gerardo-rodriguez

This is an idea @calebeby came up with as a way to help make sure required component props are not accidentally missed when using a given component.

Maybe you could do something with defined? Maybe render a message instead of the component if a given prop is not defined? 🤔

Oh yeah that might be helpful. IDK if it's worth it, but we could probably make a error pattern that is very visible/flashy and then go through all our patterns and make them render the error pattern if any of their required props are missing

It may not be a higher priority, but would be helpful throughout the implementation of the components.

Activity

  1. added
    ✨ enhancement
    🎨 design
    on Mar 28, 2022
  2. tylersticka commented on Apr 7, 2022

    @tylersticka
    Member

    This is a good idea, but I'm going to move it outside of this project as something to pursue in the future.

  3. tylersticka commented on Jun 28, 2022

    @tylersticka
    Member

    In terms of how this displays, it seems like this could be a new visual style for our Alert component rather than a brand-new component.

  4. self-assigned this
    on Jul 7, 2022
  5. tylersticka commented on Jul 11, 2022

    @tylersticka
    Member

    @AriannaChau Let's keep this out of the project because it isn't a launch blocker (but you can continue to work on the issue).

  6. tylersticka commented on Jul 19, 2022

    @tylersticka
    Member

    PR #1937 finished the design aspect of this issue, which was to create an error message pattern that could be used for the described functionality. Re-opening and labeling the issue to represent the work left to do.

  7. removed
    🎨 design
    on Jul 19, 2022
  8. removed
    ✨ enhancement
    on May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions