react-box-text
Install
npm install --save react-box-text
npm insatll --save styled-components
Screenshot Example
Demo Example
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