2.2.1 • Published 3 years ago

react-box-text v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 :heart:

License

MIT © copy-ninja1