0.1.1-b • Published 2 years ago

react-ts-cutout v0.1.1-b

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 years ago

React Cutout

npm.io npm.io https://github.com/gerardmarquinarubio/ReactCutout https://www.npmjs.com/package/react-ts-cutout

npm.io

React Cutout is a simple component that allows you to create a nice title cutout effect by simply invoking the component. Try on codesandbox.io.

Installation

npm i react-ts-cutout

Example usage

import Cutout from "react-ts-cutout";

export default function myComponent() {
  return (
    <Cutout src="/image.jpg" backgroundColor="white">
      <h1>Nice titles</h1>
      <h2>Made simple</h2>
    </Cutout>
  );
}

Props

src: string

Source of the background image. Required

backgroundColor : 'white' | 'black' | string;

Color of the background. Required. Accepts any CSS color notation.

mode?: Property.MixBlendMode;

Blend mode CSS property. Defaults to 'darken' or 'lighten' depending on backgroundColor.

0.1.1-b

2 years ago

0.1.1

2 years ago

0.1.0-a

2 years ago

0.1.0

2 years ago

0.0.9-g

2 years ago

0.0.9-f

2 years ago

0.0.9-e

2 years ago

0.0.9-d

2 years ago

0.0.9-c

2 years ago

0.0.9-b

2 years ago

0.0.9

2 years ago