Comments (3)
I donโt think blocking shorthand props is supported. Something you could do is blocking them using linting rules.
from styled-system.
So it's a feature request if it's not supported? Or is there somehow for a manual overwrite. Seems strange they extended cssproperties without ability to removed them. The eslint is pretty hacky as it can be ignored.
The big issue here is inconstancy and the team then needs to agree to use one or the other, quite poor DX.
I believe it's better to have configuration over convention for consistency.
from styled-system.
@Kivylius You can override anything you want from this library by extending it and/or removing/extracting the types you don't want to include. But you have to build out the types yourself then.
from styled-system.
Related Issues (20)
- Storybook control docs generation based on theme
- Use styled-system properties inside of styled component definition with Emotion (not default props)
- Could not find a declaration file for module '@styled-system/css' implicitly has an 'any' type. HOT 1
- Combining variants and custom props HOT 2
- Addressing child components in styled-system/css
- [Discussion? ๐บ ] Text transform - capitalize
- What's going to happen with this project? HOT 49
- Custom breakpoints are ignored when using system function HOT 1
- Sizes best practices HOT 1
- Using an alias key name for `space` HOT 3
- css module not linking theme colors for ::before pseudo element HOT 2
- Typescript `variants` type HOT 1
- alignItems media query not applying HOT 1
- TypeError: undefined is not an object (evaluating '_layout["default"].width')
- Variant for multi-elements
- Spacing type doesn't apply styled-components with props HOT 2
- @styled-system/css Documentation Page Missing HOT 1
- Project continued HOT 5
- Your site redirects to github repo HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from styled-system.