Rebass: Consider using `as` instead of `is`

Created on 5 Sep 2018  路  2Comments  路  Source: rebassjs/rebass

According to the v4 announcement blog post of styled-components, the as prop will be supported by any styled component.

It would be nice to keep the API consistent with the most popular CSS-in-JS library, so developers wouldn't have to use as and is interchangeably.

Most helpful comment

Thanks, after about 2 years of supporting this, I plan on dropping the custom implementation of the is prop in favor of whatever is built into current CSS-in-JS tools. Completely dropping it will also be dependent on emotion: https://github.com/emotion-js/emotion/issues/837

All 2 comments

Thanks, after about 2 years of supporting this, I plan on dropping the custom implementation of the is prop in favor of whatever is built into current CSS-in-JS tools. Completely dropping it will also be dependent on emotion: https://github.com/emotion-js/emotion/issues/837

Going to close this out, but expect full support for the as prop in v3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mrcoles picture mrcoles  路  4Comments

luftywiranda13 picture luftywiranda13  路  4Comments

contra picture contra  路  5Comments

contra picture contra  路  4Comments

jckw picture jckw  路  6Comments