New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-textures

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-textures

A React wrapper around textures

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

react-textures

React wrapper around textures

Svg textures

import React from 'react'
import Texture from 'react-textures'

const Header = () =>
    <div> <!-- A container which has width and height -->
        <Texture
            orientation={['diagonal', '3/8', '7/8', '6/8']}
            strokeWidth={1.2}
        >
            <div>
                Header
            </div>
        </Texture>
    </div>
Texture example
PropPropTypeDescriptionDefault
typestring oneOf(['lines', 'circles', 'paths'])type of patternlines
backgroundstringBackground color''
complementbooleanSwitch the background and foregroundfalse
dstring, funcSvg paths => 'M ${s / 4},${s * 3 / 4}l${s / 4},${-s / 2}l${s / 4},${s / 2}'
fillstringFill color#343434
orientationarray of stringsAngle of lines['diagonal']
radiusnumberRadius of circles2
shapeRenderingstringSvg shapeRenderingauto
sizenumbersize of pattern shape20
strokestringstroke color#343434
strokeWidthnumberstroke width2

FAQs

Package last updated on 12 Mar 2018

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