ScreenBackground
A simple component that renders either a color or gradient as a background.
Last updated
A simple component that renders either a color or gradient as a background.
Last updated
This component works well with the Page
component. It's responsible for providing the Page
's background.
You should use this component with Page
. See the Page
docs for a full example.
To customize the background color, use the color
prop. The default color is ['#FF2C55', '#7048e8']
, which looks like this:
You can opt to either use a gradient or solid color.
To use a gradient, pass an array of colors.
To use a solid color, pass a string with a single color.
Want help finding your favorite gradient? Check out a tool I made back in the day called Gradient God.