Skip to content

Conditional logic #4

@edgarasben

Description

@edgarasben

Would it be possible to add conditional logic such as AND, OR and NOT?

For example, I would like to only apply padding if the variant is NOT a link:

NOT:

{
    variants: {
        size: 'sm',
        variant: not('link')
    },
    className: 'xxx'
},

Other conditional examples

AND:

{
    variants: {
        size: 'sm',
        variant: and('link', 'solid', 'subtle')
    },
    className: 'xxx'
},

OR:

{
    variants: {
        size: 'sm',
        variant: or('link', 'solid', 'subtle')
    },
    className: 'xxx'
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions