react-grid-system
react-grid-system copied to clipboard
Feature: Support local configuration
Currently the configuration is global. But in an app, there may be different grid config requirements.
Could you please offer something like GridConfigContext
or fully support all config in individual components?
I did PR for smth like this, but nobody reacted, it can be extended to make what you want https://github.com/sealninja/react-grid-system/pull/113
I'm kind of wondering how many people need this, as it is adding quite some complexity. Also, the PR is only about the grid columns, and I don't see much need for that, as no one is stopping you from using <Col xs={1.5}
>. What could make sense though is a configuration context, which completely replaces the current configuration approach, but that would require quite some refactoring at this point.
I'm kind of wondering how many people need this, as it is adding quite some complexity. Also, the PR is only about the grid columns, and I don't see much need for that, as no one is stopping you from using
<Col xs={1.5}
>. What could make sense though is a configuration context, which completely replaces the current configuration approach, but that would require quite some refactoring at this point.
I'm looking for this functionality for my project, as our design system uses a different number of columns for different device types