Skip to content

[typescript] Sx properties should accept booleans #1297

Description

@Ericnr

It's very important that the sx properties are typed so that you can write sx={{ color: isActive && 'blue' }}. It does behaves correctly when a boolean is passed, the property is simply ignored, it's only a typescript since it expects only strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtypes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions