Skip to content

Create a style prop type for validation #20

@marcus-grant

Description

@marcus-grant

brigand's react-style-proptype repo is a good example of how to do it, check that the keys given match one of a list of css properties and throw an error if it doesn't fit one of them, or the whole thing is something other than an object or undefined.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions