Skip to content

Linear Gradient as Button background color #4663

@codakkk

Description

@codakkk

Description

There's no way to pass Linear Gradient props.

Problem Statement

It's possible to pass Linear Gradient to every component except for Button.

Proposed Solution or API

<Button bg={{linearGradient={....}}} />

Alternatives

Trryied with parent Box:
<Box bgColor={{ linearGradient: { colors: ['#E31E24', '#B62322', '#962B24'], start: [0, 0], end: [1, 0], }, }}> <Button variant="unstyled">Applica Filtri</Button> </Box>
but with bad results (losing all the props on child, like rounded, etc)

I tryied to pass the bg to _stack with bad results.

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions