New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@times-components/gradient

Package Overview
Dependencies
Maintainers
0
Versions
520
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@times-components/gradient

Renders a gradient background

  • 3.5.61
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
increased by80.78%
Maintainers
0
Weekly downloads
 
Created
Source

Gradient

The gradient component wraps any children and adds a gradient background. The gradient's angle can be configured by the consumer of gradient. There are two exported components:

  • Gradient - used for image placeholders and loading screens
  • OverlayGradient - developed for use when overlaying text over parts of an image

How to use

import Gradient, { OverlayGradient } from "@times-components/gradient";

// Works on it's own
<Gradient
  degrees={90}
  style={{
    width: 200,
    height: 200
  }}>
</Gradient>

// Works with children
<OverlayGradient
  degrees={90}
  style={{
    width: 200,
    height: 200
  }}>
  <Text>Example text</Text>
</OverlayGradient>

Contributing

Please read CONTRIBUTING.md before contributing to this package

Running the code

Please see our main README.md to get the project running locally

Development

The code can be formatted and linted in accordance with the agreed standards.

yarn fmt
yarn lint

Testing

This package uses yarn (latest) to run unit tests on each platform with jest.

yarn test:web

Visit the official storybook to see our available gradient templates.

Keywords

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc