Skip to content

[system] Prefer styled-components's css prop over Box css #18962

@lcswillems

Description

@lcswillems
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

A css prop had been added in Styled-components v4: https://www.styled-components.com/docs/api#css-prop. It is a very handy way to stylize a component, and personnaly I use it a lot.

However, it doesn't work on the Box component because Box has already a css property. I think it would be preferable not to have one to make it possible to use Styled-components one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeIntroduces changes that are not backward compatible.component: BoxThe React component.scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUI

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions