Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-undraw-auto

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-undraw-auto

React component for unDraw illustrations.

  • 1.14.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

NPM Version Build Status Dependency Status Dev Dependency Status

React unDraw

React component for unDraw illustrations.

Demo

https://justinlettau.github.io/react-undraw

Installation

npm install react-undraw --save

Usage

Import everything:

import Undraw from 'react-undraw';

<Undraw name="coding" />;

Import only what you need:

import { UndrawCoding } from 'react-undraw';

<UndrawCoding />;

Props:

PropTypeDescriptionDefault
namestringIllustration name, kebab-case.n/a
primaryColorstringIllustration primary color.#6c63ff
heightstringIllustration height.250px

See ILLUSTRATIONS.md for a full list of supported illustration names.

Override Default Props

import Undraw from 'react-undraw';

Undraw.setDefaultProps({ primaryColor: 'darkblue' });

Development

npm install
npm run build

To refresh the generated components:

  • Update ./scripts/illustrations.json with any new illustrations.
  • Run npm run refresh (from root) to generate files.

Keywords

FAQs

Package last updated on 15 Mar 2019

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