Skip to content

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

@gerardo-rodriguez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions