react-box-text

2.2.1 • Public • Published

react-box-text

NPM JavaScript Style Guide

Install

npm install --save react-box-text
npm insatll --save styled-components

Screenshot Example

alt text

Demo Example

Demo

Props

  • texts: Array of texts to display (required)
  • backgroundColor: BackgroundColor of the box. (optional)
  • textColor: textColor of the texts. (optional)
  • borderColor: borderColor of the box. (optional)
  • dotColor: dotColor of the box. (optional)
  • dotSize: size of the dot in px. (optional)

Usage

import React from "react";
import BoxText from "react-box-text";

const App = () => {
  return (
    <div>
      <BoxText
        textColor="#0088ff"
        dotColor="#0088ff"
        borderColor="#0088ff"
        dotSize={12}
        texts={["Look", "Good"]}
      ></BoxText>
    </div>
  );
};

export default App;

Made with ❤️

License

MIT © copy-ninja1

Package Sidebar

Install

npm i react-box-text

Weekly Downloads

0

Version

2.2.1

License

MIT

Unpacked Size

53.2 kB

Total Files

6

Last publish

Collaborators

  • copy-ninja