Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Enable PropType checking of particular className props #37

Open
RylanH opened this issue Apr 1, 2017 · 0 comments
Open

Enable PropType checking of particular className props #37

RylanH opened this issue Apr 1, 2017 · 0 comments

Comments

@RylanH
Copy link
Contributor

RylanH commented Apr 1, 2017

Often times a component will take a className as a prop which can override styling of the component. The component should be able to limit what can be overridden to guarantee the component works and acts in a particular way. Often times this means that only positional (top, left, right, margin, etc.) and some sizing styles can be applied. To enforce this, a component should be able to check the passed in className and see what styles would be applied.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant