Skip to main content
Brand and assets
Build
Monitor and contribute
/
Component library
  • All components
  • Buttons & actions
  • Forms & inputs
  • Layout & containers
  • Overlays
  • Feedback & status
  • Data display
    • Accordion
    • Accordion
    • Avatar
    • Avatar
    • Blobby
    • Card
    • Card
    • Collapsible
    • Divider
    • Emoji
    • Emoji
    • Gradient
    • Gradient
    • Icon
    • Image
    • ListItem
    • ListItem
    • ResponsiveImage
    • SemanticList
    • Tag
    • Timeline
  • Typography
  • Accessibility
  • Contrib
  • Deprecated
  • Data display
  • Gradient

Gradient

Paints a gradient background. Use the named variants so gradients stay consistent across the product.

Health
Component health
Source
View on Github
Storybook
View in Storybook
Accessibility

compliant

Platform
Mobile
📱 Mobile-only
This component is only for mobile. To see how it looks like you can check the mobile storybook with:
yarn workspace alan-mobile dev:install-client -p ios
yarn workspace alan-mobile dev:storybook
  • Overview
  • Props
info

Mobile components cannot be previewed in the browser. Use Storybook mobile or run the app locally to test.

Playground​

Loading...

Gradient props

NameTypeDefault ValueDescriptionUsage count
animatedbooleanundefined
animateOnScrollbooleanundefined
heightnumberundefined
initialTimenumberundefined
invertedbooleanundefined
maxHeightWhenCollapsednumberundefined
variant*ScreenGradientVariant
Edit this page
Previous
Emoji
Next
Gradient
  • Playground